Class ObjectiveMonitor

Direct Known Subclasses:
OptimizeVar

public class ObjectiveMonitor extends SearchMonitor
  • Constructor Details

    • ObjectiveMonitor

      protected ObjectiveMonitor(long cPtr, boolean cMemoryOwn)
    • ObjectiveMonitor

      public ObjectiveMonitor(Solver solver, SWIGTYPE_p_std__vectorT_bool_t maximize, IntVar[] vars, long[] steps)
  • Method Details

    • getCPtr

      protected static long getCPtr(ObjectiveMonitor obj)
    • swigRelease

      protected static long swigRelease(ObjectiveMonitor obj)
    • finalize

      protected void finalize()
      Overrides:
      finalize in class SearchMonitor
    • delete

      public void delete()
      Overrides:
      delete in class SearchMonitor
    • ObjectiveVar

      public IntVar ObjectiveVar(int index)
    • MinimizationVar

      public IntVar MinimizationVar(int index)
    • Step

      public long Step(int index)
    • Maximize

      public boolean Maximize(int index)
    • BestValue

      public long BestValue(int index)
    • Size

      public int Size()
    • enterSearch

      public void enterSearch()
      Description copied from class: SearchMonitor
      Beginning of the search.
      Overrides:
      enterSearch in class SearchMonitor
    • atSolution

      public boolean atSolution()
      Description copied from class: SearchMonitor
      This method is called when a valid solution is found. If the
      return value is true, then search will resume after. If the result
      is false, then search will stop there.
      Overrides:
      atSolution in class SearchMonitor
    • acceptDelta

      public boolean acceptDelta(Assignment delta, Assignment deltadelta)
      Overrides:
      acceptDelta in class SearchMonitor
    • accept

      public void accept(ModelVisitor visitor)
      Description copied from class: SearchMonitor
      Accepts the given model visitor.
      Overrides:
      accept in class SearchMonitor