choco.cp.solver.search.integer.objective
Class IntObjectiveManager
java.lang.Object
choco.cp.solver.search.integer.objective.IntObjectiveManager
- All Implemented Interfaces:
- IObjectiveManager
- Direct Known Subclasses:
- MaxIntObjManager, MinIntObjManager
public abstract class IntObjectiveManager
- extends Object
- implements IObjectiveManager
objective
public final IntDomainVar objective
bound
protected int bound
floorBound
protected int floorBound
targetBound
protected int targetBound
IntObjectiveManager
public IntObjectiveManager(IntDomainVar objective)
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.