| LinearConstraint(DoubleVector, Double, ConstraintType) Constructor |
Constructs a LinearConstraint object from the given
parameters.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public LinearConstraint(
DoubleVector coefficients,
double rightHandSide,
ConstraintType ctype
)
Public Sub New (
coefficients As DoubleVector,
rightHandSide As Double,
ctype As ConstraintType
)
public:
LinearConstraint(
DoubleVector^ coefficients,
double rightHandSide,
ConstraintType ctype
)
new :
coefficients : DoubleVector *
rightHandSide : float *
ctype : ConstraintType -> LinearConstraint
Parameters
- coefficients DoubleVector
- Linear combination coefficients.
- rightHandSide Double
- The right hand side of the constraint.
- ctype ConstraintType
- The constraint type.
Remarks If the constaint type given is ConstraintType.Inequality,
and the the independent variable is given by the vector x, then the
constructed constraint would be
coefficients[0]*x[0] + coefficients[1]*x[1] +...+ coefficients[n]*x[n] >= rightHandSide
See Also