java.lang.Object
org.maxicp.cp.engine.core.Maximize
- All Implemented Interfaces:
IntObjective,Objective
Maximization objective function
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfilter()Filters the objective wrt to current bound This method is typically executed at each node of a search treeintgetBound()Returns the current boundvoidrelax()Relax the objective it can be deterioratedvoidsetBound(int newBound) Sets the new value of the boundvoidsetDelta(int delta) Sets the new value of the bound as the one of the current solution + (maximization) or - (minimization) deltavoidsetFilter(boolean activate) Activates or deactivates the filtering of the objectivevoidtighten()Method called each time a solution is found during the search to let the tightening of the primal bound occurs such that the next found solution is better.
-
Constructor Details
-
Maximize
-
Maximize
-
-
Method Details
-
setFilter
public void setFilter(boolean activate) Description copied from interface:IntObjectiveActivates or deactivates the filtering of the objective- Specified by:
setFilterin interfaceIntObjective- Parameters:
activate-
-
setDelta
public void setDelta(int delta) Description copied from interface:IntObjectiveSets the new value of the bound as the one of the current solution + (maximization) or - (minimization) delta- Specified by:
setDeltain interfaceIntObjective- Parameters:
delta- a positive integer
-
tighten
public void tighten()Description copied from interface:ObjectiveMethod called each time a solution is found during the search to let the tightening of the primal bound occurs such that the next found solution is better. -
relax
public void relax()Description copied from interface:ObjectiveRelax the objective it can be deteriorated -
setBound
public void setBound(int newBound) Description copied from interface:IntObjectiveSets the new value of the bound- Specified by:
setBoundin interfaceIntObjective- Parameters:
newBound-
-
getBound
public int getBound()Description copied from interface:IntObjectiveReturns the current bound- Specified by:
getBoundin interfaceIntObjective- Returns:
- the current bound
-
filter
public void filter()Description copied from interface:ObjectiveFilters the objective wrt to current bound This method is typically executed at each node of a search tree
-