| ConstrainedOptimizerORToolsAddVariablesAndBounds Method |
Adds the variables in the given linearly constrained problem to a Google OR-tools GLOP linear model
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax protected virtual Variable[] AddVariablesAndBounds(
BoundedVariableProblem problem,
Solver solver,
IEnumerable<int> integralVariableIndices
)
Protected Overridable Function AddVariablesAndBounds (
problem As BoundedVariableProblem,
solver As Solver,
integralVariableIndices As IEnumerable(Of Integer)
) As Variable()
protected:
virtual array<Variable^>^ AddVariablesAndBounds(
BoundedVariableProblem^ problem,
Solver^ solver,
IEnumerable<int>^ integralVariableIndices
)
abstract AddVariablesAndBounds :
problem : BoundedVariableProblem *
solver : Solver *
integralVariableIndices : IEnumerable<int> -> Variable[]
override AddVariablesAndBounds :
problem : BoundedVariableProblem *
solver : Solver *
integralVariableIndices : IEnumerable<int> -> Variable[]
Parameters
- problem BoundedVariableProblem
- Linearly constrained problem.
- solver Solver
- Google OR-tools GLOP linear model solver.
- integralVariableIndices IEnumerableInt32
- Indicies of integral variables for a MIP's
Return Value
VariableAn array of possibly bounded variables
See Also