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

Public Member Functions

 __init__ (self, vars)
 
 ModifyValue (self, index, value)
 
 OneNeighbor (self)
 
 __disown__ (self)
 
- Public Member Functions inherited from ortools.constraint_solver.pywrapcp.IntVarLocalSearchOperator
 Start (self, assignment)
 
 IsIncremental (self)
 
 Size (self)
 
 Value (self, index)
 
 Var (self, index)
 
 OldValue (self, index)
 
 PrevValue (self, index)
 
 SetValue (self, index, value)
 
 Activated (self, index)
 
 Activate (self, index)
 
 Deactivate (self, index)
 
 AddVars (self, vars)
 
 OnStart (self)
 
 NextNeighbor (self, delta, deltadelta)
 
- Public Member Functions inherited from ortools.constraint_solver.pywrapcp.LocalSearchOperator
- Public Member Functions inherited from ortools.constraint_solver.pywrapcp.BaseObject
 DebugString (self)
 
 __str__ (self)
 
 __repr__ (self)
 

Properties

 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 
- Properties inherited from ortools.constraint_solver.pywrapcp.IntVarLocalSearchOperator
 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 
- Properties inherited from ortools.constraint_solver.pywrapcp.LocalSearchOperator
 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 
- Properties inherited from ortools.constraint_solver.pywrapcp.BaseObject
 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 

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 4157 of file pywrapcp.py.

Constructor & Destructor Documentation

◆ __init__()

ortools.constraint_solver.pywrapcp.ChangeValue.__init__ ( self,
vars )

Reimplemented from ortools.constraint_solver.pywrapcp.IntVarLocalSearchOperator.

Definition at line 4168 of file pywrapcp.py.

Member Function Documentation

◆ __disown__()

ortools.constraint_solver.pywrapcp.ChangeValue.__disown__ ( self)

Reimplemented from ortools.constraint_solver.pywrapcp.IntVarLocalSearchOperator.

Definition at line 4182 of file pywrapcp.py.

◆ ModifyValue()

ortools.constraint_solver.pywrapcp.ChangeValue.ModifyValue ( self,
index,
value )

Definition at line 4176 of file pywrapcp.py.

◆ OneNeighbor()

ortools.constraint_solver.pywrapcp.ChangeValue.OneNeighbor ( self)
 This method should not be overridden. Override ModifyValue() instead.

Reimplemented from ortools.constraint_solver.pywrapcp.IntVarLocalSearchOperator.

Definition at line 4179 of file pywrapcp.py.

Property Documentation

◆ thisown

ortools.constraint_solver.pywrapcp.ChangeValue.thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
static

Definition at line 4165 of file pywrapcp.py.


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