Class LocalSearchFilterManager
java.lang.Object
com.google.ortools.constraintsolver.BaseObject
com.google.ortools.constraintsolver.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.
the solution is feasible and compute parts of the new cost. This class
schedules filter execution and composes costs as a sum.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLocalSearchFilterManager.FilterEvent -
Field Summary
Fields inherited from class com.google.ortools.constraintsolver.BaseObject
swigCMemOwn -
Constructor Summary
Constructors Modifier Constructor Description protectedLocalSearchFilterManager(long cPtr, boolean cMemoryOwn)LocalSearchFilterManager(LocalSearchFilter[] filters)LocalSearchFilterManager(SWIGTYPE_p_std__vectorT_operations_research__LocalSearchFilterManager__FilterEvent_t filter_events) -
Method Summary
Modifier and Type Method Description booleanaccept(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.voiddelete()protected voidfinalize()longGetAcceptedObjectiveValue()protected static longgetCPtr(LocalSearchFilterManager obj)longGetSynchronizedObjectiveValue()voidRevert()protected voidswigDirectorDisconnect()voidswigReleaseOwnership()voidswigTakeOwnership()voidsynchronize(Assignment assignment, Assignment delta)Synchronizes all filters to assignment.java.lang.StringtoString()Methods inherited from class com.google.ortools.constraintsolver.BaseObject
getCPtrMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
kAccept
public static final int kAccept -
kRelax
public static final int kRelax
-
-
Constructor Details
-
LocalSearchFilterManager
protected LocalSearchFilterManager(long cPtr, boolean cMemoryOwn) -
LocalSearchFilterManager
public LocalSearchFilterManager(SWIGTYPE_p_std__vectorT_operations_research__LocalSearchFilterManager__FilterEvent_t filter_events) -
LocalSearchFilterManager
-
-
Method Details
-
getCPtr
-
finalize
protected void finalize()- Overrides:
finalizein classBaseObject
-
delete
public void delete()- Overrides:
deletein classBaseObject
-
swigDirectorDisconnect
protected void swigDirectorDisconnect() -
swigReleaseOwnership
public void swigReleaseOwnership() -
swigTakeOwnership
public void swigTakeOwnership() -
toString
public java.lang.String toString()- Overrides:
toStringin classBaseObject
-
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
Synchronizes all filters to assignment. -
GetSynchronizedObjectiveValue
public long GetSynchronizedObjectiveValue() -
GetAcceptedObjectiveValue
public long GetAcceptedObjectiveValue()
-