Class ImprovementSearchLimit


public class ImprovementSearchLimit
extends SearchLimit
  • Constructor Details

    • ImprovementSearchLimit

      protected ImprovementSearchLimit​(long cPtr, boolean cMemoryOwn)
    • ImprovementSearchLimit

      public ImprovementSearchLimit​(Solver s, IntVar objective_var, boolean maximize, double objective_scaling_factor, double objective_offset, double improvement_rate_coefficient, int improvement_rate_solutions_distance)
  • Method Details

    • getCPtr

      protected static long getCPtr​(ImprovementSearchLimit obj)
    • finalize

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

      public void delete()
      Overrides:
      delete in class SearchLimit
    • copy

      public void copy​(SearchLimit limit)
      Description copied from class: SearchLimit
      Copy a limit. Warning: leads to a direct (no check) downcasting of 'limit'
      so one needs to be sure both SearchLimits are of the same type.
      Overrides:
      copy in class SearchLimit
    • makeClone

      public SearchLimit makeClone()
      Description copied from class: SearchLimit
      Allocates a clone of the limit.
      Overrides:
      makeClone in class SearchLimit
    • check

      public boolean check()
      Description copied from class: SearchLimit
      This method is called to check the status of the limit. A return
      value of true indicates that we have indeed crossed the limit. In
      that case, this method will not be called again and the remaining
      search will be discarded.
      Overrides:
      check in class SearchLimit
    • 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
    • init

      public void init()
      Description copied from class: SearchLimit
      This method is called when the search limit is initialized.
      Overrides:
      init in class SearchLimit