Class LocalSearchOperatorState
java.lang.Object
com.google.ortools.constraintsolver.LocalSearchOperatorState
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong[]
long
CandidateInverseValue
(long value) boolean
CandidateIsActive
(long index) long
CandidateValue
(long index) Returns the value in the current assignment of the variable of given
index.void
long
CheckPointValue
(long index) void
Commit()
long
CommittedInverseValue
(long value) long
CommittedValue
(long index) void
delete()
protected void
finalize()
static long
long[]
void
Resize
(int size) void
Revert
(boolean only_incremental) void
SetCandidateActive
(long index, boolean active) void
SetCandidateValue
(long index, long value) void
SetCurrentDomainInjectiveAndKeepInverseValues
(int max_value) static long
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Details
-
LocalSearchOperatorState
public LocalSearchOperatorState(long cPtr, boolean cMemoryOwn) -
LocalSearchOperatorState
public LocalSearchOperatorState()
-
-
Method Details
-
getCPtr
-
swigRelease
-
finalize
-
delete
public void delete() -
SetCurrentDomainInjectiveAndKeepInverseValues
public void SetCurrentDomainInjectiveAndKeepInverseValues(int max_value) -
CandidateValue
public long CandidateValue(long index) Returns the value in the current assignment of the variable of given
index. -
CommittedValue
public long CommittedValue(long index) -
CheckPointValue
public long CheckPointValue(long index) -
SetCandidateValue
public void SetCandidateValue(long index, long value) -
CandidateIsActive
public boolean CandidateIsActive(long index) -
SetCandidateActive
public void SetCandidateActive(long index, boolean active) -
Commit
public void Commit() -
CheckPoint
public void CheckPoint() -
Revert
public void Revert(boolean only_incremental) -
CandidateIndicesChanged
public long[] CandidateIndicesChanged() -
IncrementalIndicesChanged
public long[] IncrementalIndicesChanged() -
Resize
public void Resize(int size) -
CandidateInverseValue
public long CandidateInverseValue(long value) -
CommittedInverseValue
public long CommittedInverseValue(long value)
-