This method solves a problem using CP Optimizer's built-in strategy. The built-in
strategy is determined
by setting the parameter CP.SearchType.
Namespace: ILOG.CP
Assembly: oplall (in oplall.dll)
Syntax
| C# |
|---|
public virtual bool Solve() |
Remarks
If the model contains an objective (instance of {IObjective}), then the optimal solution with respect to the objective will be calculated. Otherwise, a solution satisfying all problem constraints will be calculated. If no such solution exists, the method returns False, otherwise, it returns True.
| If the search has been limited in time or fails, via the parameters FailLimit or TimeLimit, then the search is not guaranteed to return the optimal solution, but the best one found within the limit available. |