Click or drag to resize

ConstrainedOptimizerORToolsAddConstraints Method

Adds the linear constraints in the given linearly constrained problem to a Google OR-tools GLOP linear model.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 7.3
Syntax
protected virtual void AddConstraints(
	IEnumerable<LinearConstraint> constraints,
	Variable[] variableIds,
	Solver solver
)

Parameters

constraints
Type: System.Collections.GenericIEnumerableLinearConstraint
Linear constraints.
variableIds
Type: Variable
The corresponding model variables in the linear model. These are generated by Solver.MakeNumVar( variableKey, out variableId )
solver
Type: Solver
Google OR-tools GLOP LP solver
See Also