Class LocalSearchOperatorState
java.lang.Object
com.google.ortools.constraintsolver.LocalSearchOperatorState
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong[]longCandidateInverseValue(long value) booleanCandidateIsActive(long index) longCandidateValue(long index) Returns the value in the current assignment of the variable of given
index.voidlongCheckPointValue(long index) voidCommit()longCommittedInverseValue(long value) longCommittedValue(long index) voiddelete()protected voidfinalize()static longlong[]voidResize(int size) voidRevert(boolean only_incremental) voidSetCandidateActive(long index, boolean active) voidSetCandidateValue(long index, long value) voidSetCurrentDomainInjectiveAndKeepInverseValues(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)
-