Click or drag to resize

ConstrainedOptimizerAddConstraints Method

Adds the linear constraints in the given linearly constrained problem to a Microsoft Solver Foundation linear model.

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

Parameters

constraints  IEnumerableLinearConstraint
Linear constraints.
variableIds  Int32
The corresponding variable ID's in the linear model. These are the ID's returned by LinearModel.AddVariable( variableKey, out variableId )
solver  LinearModel

[Missing <param name="solver"/> documentation for "M:CenterSpace.NMath.Core.ConstrainedOptimizer.AddConstraints(System.Collections.Generic.IEnumerable{CenterSpace.NMath.Core.LinearConstraint},System.Int32[],Microsoft.SolverFoundation.Services.LinearModel)"]

See Also