- Build your model (LSBBModel) by creating some expressions (LSBBExpression).
- If desired, parameterize the solver (LSBBParam).
- Run the solver (LocalSolverBlackBox).
- Retrieve the best solution found by the solver (LSBBSolution).
Note that this API is not thread safe. If multiple threads access and modify a same LocalSolverBlackBox environment, it must be synchronized. The only methods that can be used without synchronization are getState() and stop().
||Constructs a complete LocalSolverBlackBox environment and take a token license.|
||Deletes this LocalSolverBlackBox environment and all associated objects.|
||Gets the state of this LocalSolverBlackBox environment.|
||Gets the model associated to this LocalSolverBlackBox environment.|
||Gets the parameters of this LocalSolverBlackBox environment.|
||Solves the model.|
||Aborts the resolution previously launched using solve().|
||Gets the best solution found by the solver.|
Constructs a complete LocalSolverBlackBox environment and take a token license.
If no token is available or if the token server is not accessible, an exception is thrown. The token license is released when the destructor of this LocalSolverBlackBox environment is called.
Deletes this LocalSolverBlackBox environment and all associated objects.
In particular, the model, its expressions, the phases, the statistics, and the solution are deleted. The token license is then released.
Gets the state of this LocalSolverBlackBox environment.
This method can be called in any state. In particular, this method can be called in state S_Running.
Return: State of LocalSolverBlackBox.
Gets the model associated to this LocalSolverBlackBox environment.
Once the model is created and closed, the solver can be launched with solve().
Gets the parameters of this LocalSolverBlackBox environment.
Solves the model.
This method returns only when the time limit or the evaluation limit are reached. The model must be closed to launch the resolution.
Aborts the resolution previously launched using solve().
If no resolution was launched, this method does nothing. Called from another thread, this method enables users to stop the resolution properly. Solution remains valid. This method can be called in any state, notably in state S_Running.