public interface LocalSearchStoch
Modifier and Type | Method and Description |
---|---|
StochSolution |
getBestSolution()
Returns the best stochastic solution found,
or
null if the local search has not been executed yet. |
int |
getNumCPU()
Returns the number of optimization threads to run in parallel.
|
boolean |
getVerbose()
Returns the value of the verbose parameter.
|
StochSolution |
optimize(StochSolution initSol,
int maxIter,
int maxCPUSec)
Executes the local search starting from the given initial stochastic solution.
|
void |
setNumCPU(int n)
Sets the number of CPU to run in parallel.
|
void |
setVerbose(boolean verbose)
Sets verbose to
true to print program output to screen, else
sets to false to print less information. |
StochSolution getBestSolution()
null
if the local search has not been executed yet.int getNumCPU()
StochSolution optimize(StochSolution initSol, int maxIter, int maxCPUSec)
setNumCPU(int)
.initSol
- the initial stochastic solutionmaxIter
- the maximum number of iterations for each local search executionmaxCPUSec
- the maximum CPU time in secondsvoid setNumCPU(int n)
n
- the number of threads to run in parallelvoid setVerbose(boolean verbose)
true
to print program output to screen, else
sets to false
to print less information.verbose
- true
to print program output to screen, else
false
to print less information.boolean getVerbose()