







![]() ![]() |
Optimization Framework |
ICanSolve<(Of <(<'M, S>)>)>..::..Solve Method |
ICanSolve<(Of <(<'M, S>)>)> Interface See Also Send Feedback |
Solves the given model.
Optimizes if model contains at least one objective.
Namespace: Optimization.Solver.Interfaces
Assembly: Optimization.Framework (in Optimization.Framework.dll) Version: 0.3.1036.0
Syntax
C# |
---|
S Solve( M model, IDictionary<string, double> variableValues ) |
Visual Basic |
---|
Function Solve ( _ model As M, _ variableValues As IDictionary(Of String, Double) _ ) As S |
Visual C++ |
---|
S Solve( M model, IDictionary<String^, double>^ variableValues ) |
Parameters
- model
- Type: M
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.Interfaces.ICanSolve`2.Solve(`0,System.Collections.Generic.IDictionary{System.String,System.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. |