Click or drag to resize

ActiveSetSequentialQuadraticProgrammingOptimizerSolveLagrangianDerivativeEquation Method

Solves for the Lagrange multipliers and derivatives of the Lagrangian using the cost function, equality errors, active inequality errors, and the gradients of each with respect to the variables.

Namespace:  AGI.Foundation.NumericalMethods
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public static void SolveLagrangianDerivativeEquation(
	OptimizerMultivariableFunctionResults unperturbedAnswer,
	OptimizerMultivariableFunctionDerivativeResults derivativeResults,
	List<InequalityConstraintSettings> activeInequalitySet,
	List<double> activeInequalityErrors,
	List<double[]> activeInequalityGradients,
	IList<SolverConstraintSettings> equalitySet,
	double[] equalityErrors,
	ref List<double> lagrangeMultipliers,
	ref double[] lagrangianDerivatives
)

Parameters

unperturbedAnswer
Type: AGI.Foundation.NumericalMethodsOptimizerMultivariableFunctionResults
The nominal value of the OptimizerMultivariableFunction.
derivativeResults
Type: AGI.Foundation.NumericalMethodsOptimizerMultivariableFunctionDerivativeResults
The derivatives of the OptimizerMultivariableFunction that are used to provide the gradients of the cost function and the equality constraints.
activeInequalitySet
Type: System.Collections.GenericListInequalityConstraintSettings
A list of inequalities that are currently in the active set.
activeInequalityErrors
Type: System.Collections.GenericListDouble
The differences between the current values and the bound values for each inequality currently in the active set.
activeInequalityGradients
Type: System.Collections.GenericListDouble
The gradients of the inequalities in the active set.
equalitySet
Type: System.Collections.GenericIListSolverConstraintSettings
A list of equalities that are always in the active set.
equalityErrors
Type: SystemDouble
The differences between the current values and the desired values for each equality.
lagrangeMultipliers
Type: System.Collections.GenericListDouble
A list of lagrange multipliers for each constraint in the active set.
lagrangianDerivatives
Type: SystemDouble
The derivatives of the Lagrangian with respect to each of the variables.
See Also