Click or drag to resize

BoundedVariableProblemBoundsToConstraints Method

Constructs a list of linear constraints representing the bounds in the given VariableBounds instance.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static List<LinearConstraint> BoundsToConstraints(
	BoundedVariableProblem problem
)

Parameters

problem  BoundedVariableProblem
A BoundedVariableProblem problem.

Return Value

ListLinearConstraint
Remarks
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