Creates a NonlinearConstraint object with the given constraint function, constraint function domain dimension, and constraint type.

Namespace:  CenterSpace.NMath.Analysis
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public NonlinearConstraint(
	int xDimension,
	Func<DoubleVector, double> constraintFunction,
	ConstraintType constraintType
)
Visual Basic (Declaration)
Public Sub New ( _
	xDimension As Integer, _
	constraintFunction As Func(Of DoubleVector, Double), _
	constraintType As ConstraintType _
)
Visual C++
public:
NonlinearConstraint(
	int xDimension, 
	Func<DoubleVector^, double>^ constraintFunction, 
	ConstraintType constraintType
)

Parameters

xDimension
Type: System..::.Int32
The dimension of the domain of the constraint function.
constraintFunction
Type: System..::.Func<(Of <(DoubleVector, Double>)>)
Delegate for evaluating the constraint function.
constraintType
Type: CenterSpace.NMath.Analysis..::.ConstraintType
The type of the constraint (equality or inequaltiy).

See Also