|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.kernel.common.opres.heuristics.AbstractHeuristic
public abstract class AbstractHeuristic
Field Summary |
---|
Fields inherited from interface choco.kernel.common.opres.heuristics.IHeuristic |
---|
LOGGER |
Constructor Summary | |
---|---|
AbstractHeuristic()
|
Method Summary | |
---|---|
protected abstract int |
apply()
|
void |
execute()
|
void |
executeQuick()
|
boolean |
existsSolution()
indicates if the search find at least one solution. |
int |
getIterationCount()
get computation time in seconds |
int |
getNumberOfBins()
|
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()
|
String |
solutionToString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractHeuristic()
Method Detail |
---|
public void reset()
reset
in interface IHeuristic
public boolean isObjectiveOptimal()
isObjectiveOptimal
in interface IOptimizationMeasures
public int getIterationCount()
IHeuristic
getIterationCount
in interface IHeuristic
public int getSolutionCount()
ISolutionMeasures
getSolutionCount
in interface ISolutionMeasures
public final void execute()
execute
in interface IHeuristic
public final void executeQuick()
protected abstract int apply()
public final int getNumberOfBins()
public final Number getObjectiveValue()
IOptimizationMeasures
getObjectiveValue
in interface IOptimizationMeasures
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 boolean existsSolution()
ISolutionMeasures
existsSolution
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 |