Class ChangeValue
java.lang.Object
com.google.ortools.constraintsolver.BaseObject
com.google.ortools.constraintsolver.LocalSearchOperator
com.google.ortools.constraintsolver.IntVarLocalSearchOperator
com.google.ortools.constraintsolver.ChangeValue
Defines operators which change the value of variables;
each neighbor corresponds to *one* modified variable.
Sub-classes have to define ModifyValue which determines what the new
variable value is going to be (given the current value and the variable).
each neighbor corresponds to *one* modified variable.
Sub-classes have to define ModifyValue which determines what the new
variable value is going to be (given the current value and the variable).
-
Field Summary
Fields inherited from class com.google.ortools.constraintsolver.BaseObject
swigCMemOwn -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()protected voidfinalize()static longgetCPtr(ChangeValue obj) longmodifyValue(long index, long value) protected booleanThis method should not be overridden.protected voidstatic longswigRelease(ChangeValue obj) voidvoidMethods inherited from class com.google.ortools.constraintsolver.IntVarLocalSearchOperator
activate, activated, addVars, ApplyChanges, deactivate, getCPtr, HoldsDelta, isIncremental, oldValue, onStart, PrevValue, RevertChanges, setValue, size, SkipUnchanged, start, swigRelease, value, varMethods inherited from class com.google.ortools.constraintsolver.LocalSearchOperator
EnterSearch, getCPtr, HasFragments, nextNeighbor, reset, swigReleaseMethods inherited from class com.google.ortools.constraintsolver.BaseObject
getCPtr, swigRelease, toString
-
Constructor Details
-
ChangeValue
public ChangeValue(long cPtr, boolean cMemoryOwn) -
ChangeValue
-
-
Method Details
-
getCPtr
-
swigRelease
-
finalize
protected void finalize()- Overrides:
finalizein classIntVarLocalSearchOperator
-
delete
public void delete()- Overrides:
deletein classIntVarLocalSearchOperator
-
swigDirectorDisconnect
protected void swigDirectorDisconnect()- Overrides:
swigDirectorDisconnectin classIntVarLocalSearchOperator
-
swigReleaseOwnership
public void swigReleaseOwnership()- Overrides:
swigReleaseOwnershipin classIntVarLocalSearchOperator
-
swigTakeOwnership
public void swigTakeOwnership()- Overrides:
swigTakeOwnershipin classIntVarLocalSearchOperator
-
modifyValue
public long modifyValue(long index, long value) -
oneNeighbor
protected boolean oneNeighbor()This method should not be overridden. Override ModifyValue() instead.- Overrides:
oneNeighborin classIntVarLocalSearchOperator
-