Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.constraintsolver.ChangeValue Class Reference
Inheritance diagram for com.google.ortools.constraintsolver.ChangeValue:
com.google.ortools.constraintsolver.IntVarLocalSearchOperator com.google.ortools.constraintsolver.LocalSearchOperator com.google.ortools.constraintsolver.BaseObject

Public Member Functions

synchronized void delete ()
 
void swigReleaseOwnership ()
 
void swigTakeOwnership ()
 
 ChangeValue (IntVar[] vars)
 
long modifyValue (long index, long value)
 
- Public Member Functions inherited from com.google.ortools.constraintsolver.IntVarLocalSearchOperator
 IntVarLocalSearchOperator (IntVar[] vars, boolean keep_inverse_values)
 
 IntVarLocalSearchOperator (IntVar[] vars)
 
boolean HoldsDelta ()
 
void start (Assignment assignment)
 
boolean isIncremental ()
 
int size ()
 
long value (long index)
 
IntVar var (long index)
 
boolean SkipUnchanged (int index)
 
long oldValue (long index)
 
long PrevValue (long index)
 
void setValue (long index, long value)
 
boolean activated (long index)
 
void activate (long index)
 
void deactivate (long index)
 
boolean ApplyChanges (Assignment delta, Assignment deltadelta)
 
void RevertChanges (boolean change_was_incremental)
 
void addVars (IntVar[] vars)
 
void onStart ()
 
- Public Member Functions inherited from com.google.ortools.constraintsolver.LocalSearchOperator
 LocalSearchOperator ()
 
boolean nextNeighbor (Assignment delta, Assignment deltadelta)
 
void reset ()
 
boolean HasFragments ()
 
- Public Member Functions inherited from com.google.ortools.constraintsolver.BaseObject
 BaseObject ()
 
String toString ()
 

Protected Member Functions

 ChangeValue (long cPtr, boolean cMemoryOwn)
 
void finalize ()
 
void swigDirectorDisconnect ()
 
boolean oneNeighbor ()
 
- Protected Member Functions inherited from com.google.ortools.constraintsolver.IntVarLocalSearchOperator
 IntVarLocalSearchOperator (long cPtr, boolean cMemoryOwn)
 
- Protected Member Functions inherited from com.google.ortools.constraintsolver.LocalSearchOperator
 LocalSearchOperator (long cPtr, boolean cMemoryOwn)
 
- Protected Member Functions inherited from com.google.ortools.constraintsolver.BaseObject
 BaseObject (long cPtr, boolean cMemoryOwn)
 

Static Protected Member Functions

static long getCPtr (ChangeValue obj)
 
static long swigRelease (ChangeValue obj)
 
- Static Protected Member Functions inherited from com.google.ortools.constraintsolver.IntVarLocalSearchOperator
static long getCPtr (IntVarLocalSearchOperator obj)
 
static long swigRelease (IntVarLocalSearchOperator obj)
 
- Static Protected Member Functions inherited from com.google.ortools.constraintsolver.LocalSearchOperator
static long getCPtr (LocalSearchOperator obj)
 
static long swigRelease (LocalSearchOperator obj)
 
- Static Protected Member Functions inherited from com.google.ortools.constraintsolver.BaseObject
static long getCPtr (BaseObject obj)
 
static long swigRelease (BaseObject obj)
 

Additional Inherited Members

- Protected Attributes inherited from com.google.ortools.constraintsolver.BaseObject
transient boolean swigCMemOwn
 

Detailed Description

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).

Definition at line 17 of file ChangeValue.java.

Constructor & Destructor Documentation

◆ ChangeValue() [1/2]

com.google.ortools.constraintsolver.ChangeValue.ChangeValue ( long cPtr,
boolean cMemoryOwn )
protected

Definition at line 20 of file ChangeValue.java.

◆ ChangeValue() [2/2]

com.google.ortools.constraintsolver.ChangeValue.ChangeValue ( IntVar[] vars)

Definition at line 72 of file ChangeValue.java.

Member Function Documentation

◆ delete()

synchronized void com.google.ortools.constraintsolver.ChangeValue.delete ( )

◆ finalize()

void com.google.ortools.constraintsolver.ChangeValue.finalize ( )
protected

◆ getCPtr()

static long com.google.ortools.constraintsolver.ChangeValue.getCPtr ( ChangeValue obj)
staticprotected

Definition at line 25 of file ChangeValue.java.

◆ modifyValue()

long com.google.ortools.constraintsolver.ChangeValue.modifyValue ( long index,
long value )

Definition at line 77 of file ChangeValue.java.

◆ oneNeighbor()

boolean com.google.ortools.constraintsolver.ChangeValue.oneNeighbor ( )
protected

This method should not be overridden. Override ModifyValue() instead.

Reimplemented from com.google.ortools.constraintsolver.IntVarLocalSearchOperator.

Definition at line 84 of file ChangeValue.java.

◆ swigDirectorDisconnect()

void com.google.ortools.constraintsolver.ChangeValue.swigDirectorDisconnect ( )
protected

◆ swigRelease()

static long com.google.ortools.constraintsolver.ChangeValue.swigRelease ( ChangeValue obj)
staticprotected

Definition at line 29 of file ChangeValue.java.

◆ swigReleaseOwnership()

void com.google.ortools.constraintsolver.ChangeValue.swigReleaseOwnership ( )

◆ swigTakeOwnership()

void com.google.ortools.constraintsolver.ChangeValue.swigTakeOwnership ( )

The documentation for this class was generated from the following file: