Class LocalSearchFilterManager


  • public class LocalSearchFilterManager
    extends BaseObject
    Filter manager: when a move is made, filters are executed to decide whether
    the solution is feasible and compute parts of the new cost. This class
    schedules filter execution and composes costs as a sum.
    • Field Detail

      • kAccept

        public static final int kAccept
      • kRelax

        public static final int kRelax
    • Method Detail

      • swigDirectorDisconnect

        protected void swigDirectorDisconnect()
      • swigReleaseOwnership

        public void swigReleaseOwnership()
      • swigTakeOwnership

        public void swigTakeOwnership()
      • Revert

        public void Revert()
      • accept

        public boolean accept​(LocalSearchMonitor monitor,
                              Assignment delta,
                              Assignment deltadelta,
                              long objective_min,
                              long objective_max)
        Returns true iff all filters return true, and the sum of their accepted
        objectives is between objective_min and objective_max.
        The monitor has its Begin/EndFiltering events triggered.
      • synchronize

        public void synchronize​(Assignment assignment,
                                Assignment delta)
        Synchronizes all filters to assignment.
      • GetSynchronizedObjectiveValue

        public long GetSynchronizedObjectiveValue()
      • GetAcceptedObjectiveValue

        public long GetAcceptedObjectiveValue()