| LinearConstraint(ILinearConstraintCoefficients, 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(
ILinearConstraintCoefficients coefficients,
double rightHandSide,
ConstraintType ctype
)
Public Sub New (
coefficients As ILinearConstraintCoefficients,
rightHandSide As Double,
ctype As ConstraintType
)
public:
LinearConstraint(
ILinearConstraintCoefficients^ coefficients,
double rightHandSide,
ConstraintType ctype
)
new :
coefficients : ILinearConstraintCoefficients *
rightHandSide : float *
ctype : ConstraintType -> LinearConstraint
Parameters
- coefficients ILinearConstraintCoefficients
- 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