This class contains the LocalSolverBlackBox environment. It is the main class of the LocalSolverBlackBox library. Here are described the basic steps for using LocalSolverBlackBox:
localsolver.LSVersionfor copyright and version info.
||Delete the LocalSolverBlackBox objects and release the licence token.|
||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.
Delete the LocalSolverBlackBox objects and release the licence token. This method is automatically called when the LocalSolverBlackBox object was created in a using statement (see IDisposable interface). Otherwise it must be called explicitly. It deletes the native memory used by LocalSolverBlackBox and makes the LocalSolverBlackBox licence available for another LocalSolverBlackBox model.
Gets the state of this LocalSolverBlackBox environment. This method can be called in any state. In particular, this method can be called in state
Returns: State of LocalSolverBlackBox. Return type: LSBBState
Gets the model associated to this LocalSolverBlackBox environment. Once the model is created and closed, the solver can be launched with
Returns: Model Return type: LSBBModel
Gets the parameters of this LocalSolverBlackBox environment.
Returns: Parameters Return type: LSBBParam
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
Gets the best solution found by the solver. If the solver has not been started at least once, all the decision variables of the solution are set to 0 (such a solution may be infeasible). Only allowed in states
Returns: The best solution. Return type: LSBBSolution