| BoundedVariableProblemBoundsToConstraints Method |
Constructs a list of linear constraints representing the bounds in the
given VariableBounds instance.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static List<LinearConstraint> BoundsToConstraints(
BoundedVariableProblem problem
)
Public Shared Function BoundsToConstraints (
problem As BoundedVariableProblem
) As List(Of LinearConstraint)
public:
static List<LinearConstraint^>^ BoundsToConstraints(
BoundedVariableProblem^ problem
)
static member BoundsToConstraints :
problem : BoundedVariableProblem -> List<LinearConstraint>
Parameters
- problem BoundedVariableProblem
- A BoundedVariableProblem problem.
Return Value
ListLinearConstraintRemarks
If x = [x0, x1,..., xi,...,xN-1] is an N-dimensional variable, and
xi >= bi is a bound on the ith component, then the equivalent linear
constraint is
ei'x >= bi
where ei is a vector of length N-1 with a 1 in the ith component and
all other components 0.
See Also