Localsolver
6.0
|
Solving parameters.
This class contains some methods allowing you to parameterize the resolution of the model. For the sake of simplicity, only a few parameters are actually offered to tune the search.
Public Member Functions | |
LocalSolverBlackBox | GetLocalSolverBlackBox () |
Returns the LocalSolverBlackBox object associated to these parameters. | |
void | SetSeed (int seed) |
Sets the seed of the pseudo-random number generator used by the solver. | |
int | GetSeed () |
Gets the seed of the pseudo-random number generator used by the solver. | |
void | SetTimeLimit (int timeLimit) |
Sets the time limit in seconds. | |
int | GetTimeLimit () |
Gets the time limit of this phase in seconds. | |
void | SetEvaluationLimit (int evaluationLimit) |
Sets the maximum number of blackbox evaluations. | |
int | GetEvaluationLimit () |
Gets the maximum number of blackbox evalutions. | |
void | SetObjectiveBound (double bound) |
Sets the objective bound. |
LocalSolverBlackBox localsolverblackbox.LSBBParam.GetLocalSolverBlackBox | ( | ) |
Returns the LocalSolverBlackBox object associated to these parameters.
void localsolverblackbox.LSBBParam.SetSeed | ( | int | seed | ) |
Sets the seed of the pseudo-random number generator used by the solver.
The seed must be a positive integer. The default seed is set to 0. Only allowed in state LSBBState::Stopped.
seed | Seed of the pseudo-random number generator. |
int localsolverblackbox.LSBBParam.GetSeed | ( | ) |
Gets the seed of the pseudo-random number generator used by the solver.
Only allowed in states LSBBState::Paused or LSBBState::Stopped.
void localsolverblackbox.LSBBParam.SetTimeLimit | ( | int | timeLimit | ) |
Sets the time limit in seconds.
Note that the "real" time (that is, total time) spent to resolve the model is considered here (and not only the CPU time). The default time limit is set to the largest positive integer on 32 bits, that is 2^31-1 = 2,147,483,647 > 10^9. Only allowed in state LSBBState::Stopped.
timeLimit | Time limit in seconds. |
int localsolverblackbox.LSBBParam.GetTimeLimit | ( | ) |
Gets the time limit of this phase in seconds.
Only allowed in states LSBBState::Paused or LSBBState::Stopped.
void localsolverblackbox.LSBBParam.SetEvaluationLimit | ( | int | evaluationLimit | ) |
Sets the maximum number of blackbox evaluations.
The default number of evaluations is set to the largest positive integer on 32 bits, that is 2^31-1 = 2,147,483,647 > 10^9. Only allowed in state LSBBState::Stopped.
evaluationLimit | Maximum number of blackbox evaluation. |
int localsolverblackbox.LSBBParam.GetEvaluationLimit | ( | ) |
Gets the maximum number of blackbox evalutions.
Only allowed in states LSBBState::Paused or LSBBState::Stopped.
void localsolverblackbox.LSBBParam.SetObjectiveBound | ( | double | bound | ) |
Sets the objective bound.
If the objective is minimized (resp. maximized), then the optimization of this objective is stopped as soon as this lower (resp. upper) bound is reached. Only allowed in states LSBBState::Stopped.
bound | Objective bound. |