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

Public Member Functions

 __init__ (self, val)
 
 Value (self)
 
 SetValue (self, s, val)
 

Properties

 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 

Detailed Description

This class adds reversibility to a POD type.
It contains the stamp optimization. i.e. the SaveValue call is done
only once per node of the search tree.  Please note that actual
stamps always starts at 1, thus an initial value of 0 will always
trigger the first SaveValue.

Definition at line 3776 of file pywrapcp.py.

Constructor & Destructor Documentation

◆ __init__()

ortools.constraint_solver.pywrapcp.RevInteger.__init__ ( self,
val )

Reimplemented in ortools.constraint_solver.pywrapcp.NumericalRevInteger.

Definition at line 3788 of file pywrapcp.py.

Member Function Documentation

◆ SetValue()

ortools.constraint_solver.pywrapcp.RevInteger.SetValue ( self,
s,
val )

Definition at line 3794 of file pywrapcp.py.

◆ Value()

ortools.constraint_solver.pywrapcp.RevInteger.Value ( self)

Definition at line 3791 of file pywrapcp.py.

Property Documentation

◆ thisown

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

Definition at line 3785 of file pywrapcp.py.


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