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 TypeMethodDescriptionvoid
delete()
protected void
finalize()
static long
getCPtr
(ChangeValue obj) long
modifyValue
(long index, long value) protected boolean
This method should not be overridden.protected void
static long
swigRelease
(ChangeValue obj) void
void
Methods 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, var
Methods inherited from class com.google.ortools.constraintsolver.LocalSearchOperator
EnterSearch, getCPtr, HasFragments, nextNeighbor, reset, swigRelease
Methods 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:
finalize
in classIntVarLocalSearchOperator
-
delete
public void delete()- Overrides:
delete
in classIntVarLocalSearchOperator
-
swigDirectorDisconnect
protected void swigDirectorDisconnect()- Overrides:
swigDirectorDisconnect
in classIntVarLocalSearchOperator
-
swigReleaseOwnership
public void swigReleaseOwnership()- Overrides:
swigReleaseOwnership
in classIntVarLocalSearchOperator
-
swigTakeOwnership
public void swigTakeOwnership()- Overrides:
swigTakeOwnership
in classIntVarLocalSearchOperator
-
modifyValue
public long modifyValue(long index, long value) -
oneNeighbor
protected boolean oneNeighbor()This method should not be overridden. Override ModifyValue() instead.- Overrides:
oneNeighbor
in classIntVarLocalSearchOperator
-