|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.kernel.common.opres.heuristics.AbstractRandomizedHeuristic
public abstract class AbstractRandomizedHeuristic
Field Summary | |
---|---|
protected int |
iterationLimit
|
Fields inherited from interface choco.kernel.common.opres.heuristics.IHeuristic |
---|
LOGGER |
Constructor Summary | |
---|---|
AbstractRandomizedHeuristic()
|
Method Summary | |
---|---|
protected abstract int |
apply(int iteration,
int bestsol,
int seed)
|
int |
apply(Random random)
|
protected int |
applySingleIteration(int iteration,
int seed)
|
boolean |
existsSolution()
heuristics always succeeds |
protected void |
forceStoreSolution(int obj)
|
int |
getBestIteration()
|
int |
getIterationCount()
get computation time in seconds |
abstract int |
getLowerBound()
|
Number |
getObjectiveValue()
Get the best objective value of a solution. |
int |
getSolutionCount()
Get the solution count of the measure |
double |
getTimeCount()
get computation time in seconds |
boolean |
hasSearched()
indicates if the algorithm was executed |
boolean |
isObjectiveOptimal()
|
void |
reset()
|
void |
setIterationLimit(int iterationLimit)
|
void |
setTimeLimit(int timeLimit)
in seconds |
String |
solutionToString()
|
protected void |
storeSolution(int seed)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface choco.kernel.common.opres.heuristics.IHeuristic |
---|
execute |
Field Detail |
---|
protected int iterationLimit
Constructor Detail |
---|
public AbstractRandomizedHeuristic()
Method Detail |
---|
public void reset()
reset
in interface IHeuristic
protected final void forceStoreSolution(int obj)
protected final void storeSolution(int seed)
public abstract int getLowerBound()
protected abstract int apply(int iteration, int bestsol, int seed)
protected final int applySingleIteration(int iteration, int seed)
public final int apply(Random random)
public boolean isObjectiveOptimal()
isObjectiveOptimal
in interface IOptimizationMeasures
public final void setTimeLimit(int timeLimit)
public final void setIterationLimit(int iterationLimit)
public final int getIterationCount()
IHeuristic
getIterationCount
in interface IHeuristic
public int getBestIteration()
public final double getTimeCount()
IHeuristic
getTimeCount
in interface IHeuristic
public final boolean hasSearched()
IHeuristic
hasSearched
in interface IHeuristic
true
if a solution was found
public final boolean existsSolution()
existsSolution
in interface ISolutionMeasures
public final Number getObjectiveValue()
IOptimizationMeasures
getObjectiveValue
in interface IOptimizationMeasures
public int getSolutionCount()
ISolutionMeasures
getSolutionCount
in interface ISolutionMeasures
public String solutionToString()
solutionToString
in interface ISolutionDisplay
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |