| ConstrainedOptimizerAddConstraints Method |
Adds the linear constraints in the given linearly constrained problem to a Microsoft
Solver Foundation linear model.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax protected virtual void AddConstraints(
IEnumerable<LinearConstraint> constraints,
int[] variableIds,
LinearModel solver
)
Protected Overridable Sub AddConstraints (
constraints As IEnumerable(Of LinearConstraint),
variableIds As Integer(),
solver As LinearModel
)
protected:
virtual void AddConstraints(
IEnumerable<LinearConstraint^>^ constraints,
array<int>^ variableIds,
LinearModel^ solver
)
abstract AddConstraints :
constraints : IEnumerable<LinearConstraint> *
variableIds : int[] *
solver : LinearModel -> unit
override AddConstraints :
constraints : IEnumerable<LinearConstraint> *
variableIds : int[] *
solver : LinearModel -> unit
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