choco.kernel.common.opres.heuristics
Class NoHeuristic

java.lang.Object
  extended by choco.kernel.common.opres.heuristics.NoHeuristic
All Implemented Interfaces:
IHeuristic, ISolutionDisplay, IOptimizationMeasures, ISolutionMeasures

public final class NoHeuristic
extends Object
implements IHeuristic


Field Summary
 
Fields inherited from interface choco.kernel.common.opres.heuristics.IHeuristic
LOGGER
 
Method Summary
 void execute()
           
 boolean existsSolution()
          indicates if the search find at least one solution.
static NoHeuristic getInstance()
          Returns this shared instance.
 int getIterationCount()
          get computation time in seconds
 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
 

Method Detail

getInstance

public static final NoHeuristic getInstance()
Returns this shared instance.


execute

public void execute()
Specified by:
execute in interface IHeuristic

reset

public void reset()
Specified by:
reset in interface IHeuristic

getObjectiveValue

public Number getObjectiveValue()
Description copied from interface: IOptimizationMeasures
Get the best objective value of a solution.

Specified by:
getObjectiveValue in interface IOptimizationMeasures

isObjectiveOptimal

public boolean isObjectiveOptimal()
Specified by:
isObjectiveOptimal in interface IOptimizationMeasures

getIterationCount

public int getIterationCount()
Description copied from interface: IHeuristic
get computation time in seconds

Specified by:
getIterationCount in interface IHeuristic

getTimeCount

public double getTimeCount()
Description copied from interface: IHeuristic
get computation time in seconds

Specified by:
getTimeCount in interface IHeuristic

hasSearched

public boolean hasSearched()
Description copied from interface: IHeuristic
indicates if the algorithm was executed

Specified by:
hasSearched in interface IHeuristic
Returns:
true if a solution was found

existsSolution

public boolean existsSolution()
Description copied from interface: ISolutionMeasures
indicates if the search find at least one solution.

Specified by:
existsSolution in interface ISolutionMeasures

getSolutionCount

public int getSolutionCount()
Description copied from interface: ISolutionMeasures
Get the solution count of the measure

Specified by:
getSolutionCount in interface ISolutionMeasures
Returns:
solution count

solutionToString

public String solutionToString()
Specified by:
solutionToString in interface ISolutionDisplay


Copyright © 2012. All Rights Reserved.