Click or drag to resize

NonlinearProgrammingProblemAddEqualityConstraint(Int32, FuncDoubleVector, Double, Double) Method

Adds an equality constraint of the form constraintFunction(x) = rightHandSide

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public void AddEqualityConstraint(
	int xDimension,
	Func<DoubleVector, double> constraintFunction,
	double rightHandSide
)

Parameters

xDimension  Int32
The dimension of the domain of the constraintFunction
constraintFunction  FuncDoubleVector, Double
Constraint function.
rightHandSide  Double
The right hand side of the equality.
Exceptions
ExceptionCondition
InvalidArgumentExceptionThrown if rightHandSide is not real - i.e. NaN of Infinity.
See Also