Class LocalSearchFilterManager
java.lang.Object
com.google.ortools.constraintsolver.BaseObject
com.google.ortools.constraintsolver.LocalSearchFilterManager
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 -
Field Summary
FieldsFields inherited from class com.google.ortools.constraintsolver.BaseObject
swigCMemOwn -
Constructor Summary
ConstructorsConstructorDescriptionLocalSearchFilterManager(long cPtr, boolean cMemoryOwn) LocalSearchFilterManager(LocalSearchFilter[] filters) LocalSearchFilterManager(SWIGTYPE_p_std__vectorT_operations_research__LocalSearchFilterManager__FilterEvent_t filter_events) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(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()longstatic longlongvoidRevert()protected voidstatic longvoidvoidvoidsynchronize(Assignment assignment, Assignment delta) Synchronizes all filters to assignment.toString()Methods inherited from class com.google.ortools.constraintsolver.BaseObject
getCPtr, swigRelease
-
Field Details
-
kAccept
public static final int kAccept -
kRelax
public static final int kRelax
-
-
Constructor Details
-
LocalSearchFilterManager
public LocalSearchFilterManager(long cPtr, boolean cMemoryOwn) -
LocalSearchFilterManager
public LocalSearchFilterManager(SWIGTYPE_p_std__vectorT_operations_research__LocalSearchFilterManager__FilterEvent_t filter_events) -
LocalSearchFilterManager
-
-
Method Details
-
getCPtr
-
swigRelease
-
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
- 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()
-