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 TypeMethodDescriptionboolean
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.void
delete()
protected void
finalize()
long
static long
long
void
Revert()
protected void
static long
void
void
void
synchronize
(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:
finalize
in classBaseObject
-
delete
public void delete()- Overrides:
delete
in classBaseObject
-
swigDirectorDisconnect
protected void swigDirectorDisconnect() -
swigReleaseOwnership
public void swigReleaseOwnership() -
swigTakeOwnership
public void swigTakeOwnership() -
toString
- Overrides:
toString
in 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()
-