







Solves the given model.
Optimizes if model contains at least one objective.
Namespace: Optimization.Solver.Cplex
Assembly: Optimization.Framework (in Optimization.Framework.dll) Version: 0.3.1036.0
Syntax
| C# |
|---|
public Solution Solve( Model model, IDictionary<string, double> variableValues ) |
| Visual Basic |
|---|
Public Function Solve ( _ model As Model, _ variableValues As IDictionary(Of String, Double) _ ) As Solution |
| Visual C++ |
|---|
public: virtual Solution^ Solve( Model^ model, IDictionary<String^, double>^ variableValues ) sealed |
Parameters
- model
- Type: Optimization..::..Model
The model to solve.
- variableValues
- Type: System.Collections.Generic..::..IDictionary<(Of <(<'String, Double>)>)>
Initial values for all or a subset of variables in model.
Return Value
[Missing <returns> documentation for "M:Optimization.Solver.Cplex.CplexSolver.Solve(Optimization.Model,System.Collections.Generic.IDictionary{System.String,System.Double})"]
Implements
ICanSolve<(Of <(<'M, S>)>)>..::..Solve(M, IDictionary<(Of <<'(String, Double>)>>))
Exceptions
| Exception | Condition |
|---|---|
| System..::..NotSupportedException | If this solver instance not supports solving. |
| System..::..InvalidOperationException | If this solver instance is busy. |
| System..::..ArgumentException | If this solver instance cannot handle the kind of model. |
