public class LocalSearchFilter extends BaseObject
swigCMemOwn| Modifier | Constructor and Description |
|---|---|
|
LocalSearchFilter() |
protected |
LocalSearchFilter(long cPtr,
boolean cMemoryOwn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Assignment delta,
Assignment deltadelta,
long objective_min,
long objective_max)
Accepts a "delta" given the assignment with which the filter has been
synchronized; the delta holds the variables which have been modified and their new value. If the filter represents a part of the global objective, its contribution must be between objective_min and objective_max. Sample: supposing one wants to maintain a[0,1] + b[0,1] <= 1, for the assignment (a,1), (b,0), the delta (b,1) will be rejected but the delta (a,0) will be accepted. TODO(user): Remove arguments when there are no more need for those. |
void |
Commit(Assignment delta,
Assignment deltadelta)
Dual of Relax(), lets the filter know that the delta was accepted.
|
void |
delete() |
protected void |
finalize() |
long |
getAcceptedObjectiveValue()
Objective value from the last time Accept() was called and returned true.
|
protected static long |
getCPtr(LocalSearchFilter obj) |
long |
getSynchronizedObjectiveValue()
Objective value from last time Synchronize() was called.
|
boolean |
isIncremental() |
void |
Relax(Assignment delta,
Assignment deltadelta)
Lets the filter know what delta and deltadelta will be passed in the next
Accept(). |
void |
Reset()
Sets the filter to empty solution.
|
void |
Revert()
Cancels the changes made by the last Relax()/Accept() calls.
|
protected void |
swigDirectorDisconnect() |
protected static long |
swigRelease(LocalSearchFilter obj) |
void |
swigReleaseOwnership() |
void |
swigTakeOwnership() |
void |
synchronize(Assignment assignment,
Assignment delta)
Synchronizes the filter with the current solution, delta being the
difference with the solution passed to the previous call to Synchronize() or IncrementalSynchronize(). |
getCPtr, swigRelease, toStringprotected LocalSearchFilter(long cPtr,
boolean cMemoryOwn)
public LocalSearchFilter()
protected static long getCPtr(LocalSearchFilter obj)
protected static long swigRelease(LocalSearchFilter obj)
protected void finalize()
finalize in class BaseObjectpublic void delete()
delete in class BaseObjectprotected void swigDirectorDisconnect()
public void swigReleaseOwnership()
public void swigTakeOwnership()
public void Relax(Assignment delta, Assignment deltadelta)
public void Commit(Assignment delta, Assignment deltadelta)
public boolean accept(Assignment delta, Assignment deltadelta, long objective_min, long objective_max)
public boolean isIncremental()
public void synchronize(Assignment assignment, Assignment delta)
public void Revert()
public void Reset()
public long getSynchronizedObjectiveValue()
public long getAcceptedObjectiveValue()
Copyright © 2024. All rights reserved.