Interface ICanSolve<M, S>
Indicates that this solver can solve models of type M and return solutions of type S
Namespace: OPTANO.Modeling.Optimization.Solver.Interfaces
Assembly: Optimization.dll
Syntax
public interface ICanSolve<M, S>
Type Parameters
| Name | Description |
|---|---|
| M | The model type |
| S | The solution type |
Methods
Solve(M, Dictionary<Variable, Double>)
Solves the given model.
Optimizes if model contains at least one objective.
Declaration
Solution Solve(M model, Dictionary<Variable, double> variableValues = null)
Parameters
| Type | Name | Description |
|---|---|---|
| M | model | The model to solve. |
| System.Collections.Generic.Dictionary<Variable, System.Double> | variableValues | Initial values for all or a subset of variables in |
Returns
| Type | Description |
|---|---|
| Solution | The Solution. |
Exceptions
| Type | 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 |