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.4
Syntax
protected virtual void AddConstraints(
	IEnumerable<LinearConstraint> constraints,
	Variable[] variableIds,
	Solver solver
)

Parameters

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