Module org.maxicp

Class Minimize

java.lang.Object
org.maxicp.cp.engine.core.Minimize
All Implemented Interfaces:
IntObjective, Objective

public class Minimize extends Object implements IntObjective
Minimization objective function
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Filters the objective wrt to current bound This method is typically executed at each node of a search tree
    int
    Returns the current bound
    void
    Relax the objective it can be deteriorated
    void
    setBound(int newBound)
    Sets the new value of the bound
    void
    setDelta(int delta)
    Sets the new value of the bound as the one of the current solution + (maximization) or - (minimization) delta
    void
    setFilter(boolean activate)
    Activates or deactivates the filtering of the objective
    void
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • setFilter

      public void setFilter(boolean activate)
      Description copied from interface: IntObjective
      Activates or deactivates the filtering of the objective
      Specified by:
      setFilter in interface IntObjective
      Parameters:
      activate -
    • setDelta

      public void setDelta(int delta)
      Description copied from interface: IntObjective
      Sets the new value of the bound as the one of the current solution + (maximization) or - (minimization) delta
      Specified by:
      setDelta in interface IntObjective
      Parameters:
      delta - a positive integer
    • tighten

      public void tighten()
      Description copied from interface: Objective
      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.
      Specified by:
      tighten in interface Objective
    • relax

      public void relax()
      Description copied from interface: Objective
      Relax the objective it can be deteriorated
      Specified by:
      relax in interface Objective
    • setBound

      public void setBound(int newBound)
      Description copied from interface: IntObjective
      Sets the new value of the bound
      Specified by:
      setBound in interface IntObjective
      Parameters:
      newBound -
    • getBound

      public int getBound()
      Description copied from interface: IntObjective
      Returns the current bound
      Specified by:
      getBound in interface IntObjective
      Returns:
      the current bound
    • filter

      public void filter()
      Description copied from interface: Objective
      Filters the objective wrt to current bound This method is typically executed at each node of a search tree
      Specified by:
      filter in interface Objective