choco.cp.solver.search.integer.objective
Class IntObjectiveManager

java.lang.Object
  extended by choco.cp.solver.search.integer.objective.IntObjectiveManager
All Implemented Interfaces:
IObjectiveManager
Direct Known Subclasses:
MaxIntObjManager, MinIntObjManager

public abstract class IntObjectiveManager
extends Object
implements IObjectiveManager


Field Summary
protected  int bound
           
protected  int floorBound
           
 IntDomainVar objective
           
protected  int targetBound
           
 
Constructor Summary
IntObjectiveManager(IntDomainVar objective)
           
 
Method Summary
 Number getBestObjectiveValue()
          v1.0 accessing the best found objective value of an optimization model (note that the objective value may not be instantiated, while all other variables are)
abstract  int getCeilValue()
           
abstract  int getFloorValue()
           
abstract  int getInitialBoundValue()
           
 Var getObjective()
           
 Number getObjectiveFloor()
          Currently best known bound on the optimal solution value of the problem.
 Number getObjectiveTarget()
          the target for the objective function: we are searching for a solution at least as good as this (tentative bound)
 Number getObjectiveValue()
          v1.0 accessing the objective value of an optimization model (note that the objective value may not be instantiated, while all other variables are)
 void initBounds()
          initialization of the optimization bound data structure
 void postIncFloorBound()
           
 String toString()
           
 void writeObjective(Solution sol)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface choco.kernel.solver.search.IObjectiveManager
incrementFloorBound, isTargetInfeasible, postFloorBound, postTargetBound, setBound, setTargetBound
 

Field Detail

objective

public final IntDomainVar objective

bound

protected int bound

floorBound

protected int floorBound

targetBound

protected int targetBound
Constructor Detail

IntObjectiveManager

public IntObjectiveManager(IntDomainVar objective)
Method Detail

getInitialBoundValue

public abstract int getInitialBoundValue()

getFloorValue

public abstract int getFloorValue()

getCeilValue

public abstract int getCeilValue()

getObjective

public final Var getObjective()
Specified by:
getObjective in interface IObjectiveManager

getObjectiveValue

public final Number getObjectiveValue()
Description copied from interface: IObjectiveManager
v1.0 accessing the objective value of an optimization model (note that the objective value may not be instantiated, while all other variables are)

Specified by:
getObjectiveValue in interface IObjectiveManager
Returns:
the current objective value

getBestObjectiveValue

public final Number getBestObjectiveValue()
Description copied from interface: IObjectiveManager
v1.0 accessing the best found objective value of an optimization model (note that the objective value may not be instantiated, while all other variables are)

Specified by:
getBestObjectiveValue in interface IObjectiveManager
Returns:
the best found objective value

getObjectiveTarget

public final Number getObjectiveTarget()
Description copied from interface: IObjectiveManager
the target for the objective function: we are searching for a solution at least as good as this (tentative bound)

Specified by:
getObjectiveTarget in interface IObjectiveManager

getObjectiveFloor

public final Number getObjectiveFloor()
Description copied from interface: IObjectiveManager
Currently best known bound on the optimal solution value of the problem.

Specified by:
getObjectiveFloor in interface IObjectiveManager

initBounds

public final void initBounds()
Description copied from interface: IObjectiveManager
initialization of the optimization bound data structure

Specified by:
initBounds in interface IObjectiveManager

postIncFloorBound

public final void postIncFloorBound()
                             throws ContradictionException
Specified by:
postIncFloorBound in interface IObjectiveManager
Throws:
ContradictionException

writeObjective

public final void writeObjective(Solution sol)
Specified by:
writeObjective in interface IObjectiveManager

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.