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

Public Member Functions

 __init__ (self, *args, **kwargs)
 
 Min (self)
 
 SetMin (self, m)
 
 Max (self)
 
 SetMax (self, m)
 
 SetRange (self, mi, ma)
 
 Bound (self)
 
 Value (self)
 
 RemoveValue (self, v)
 
 RemoveInterval (self, l, u)
 
 WhenBound (self, d)
 
 WhenRange (self, d)
 
 WhenDomain (self, d)
 
 Size (self)
 
 Contains (self, v)
 
 HoleIteratorAux (self, reversible)
 
 DomainIteratorAux (self, reversible)
 
 DebugString (self)
 
- Public Member Functions inherited from ortools.constraint_solver.pywrapcp.IntVar
 IsVar (self)
 
 Var (self)
 
 RemoveValues (self, values)
 
 SetValues (self, values)
 
 OldMin (self)
 
 OldMax (self)
 
 __repr__ (self)
 
 __str__ (self)
 
 DomainIterator (self)
 
 HoleIterator (self)
 
- Public Member Functions inherited from ortools.constraint_solver.pywrapcp.IntExpr
 SetValue (self, v)
 
 VarWithName (self, name)
 
 __add__ (self, *args)
 
 __radd__ (self, v)
 
 __sub__ (self, *args)
 
 __rsub__ (self, v)
 
 __mul__ (self, *args)
 
 __rmul__ (self, v)
 
 __floordiv__ (self, *args)
 
 __mod__ (self, *args)
 
 __neg__ (self)
 
 __abs__ (self)
 
 Square (self)
 
 __eq__ (self, *args)
 
 __ne__ (self, *args)
 
 __ge__ (self, *args)
 
 __gt__ (self, *args)
 
 __le__ (self, *args)
 
 __lt__ (self, *args)
 
 MapTo (self, vars)
 
 IndexOf (self, *args)
 
 IsMember (self, values)
 
 Member (self, values)
 
 NotMember (self, starts, ends)
 
- Public Member Functions inherited from ortools.constraint_solver.pywrapcp.PropagationBaseObject
 solver (self)
 
 Name (self)
 
 __disown__ (self)
 
- Public Member Functions inherited from ortools.constraint_solver.pywrapcp.BaseObject

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.IntVar
 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.IntExpr
 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.PropagationBaseObject
 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

Definition at line 4352 of file pywrapcp.py.

Constructor & Destructor Documentation

◆ __init__()

ortools.constraint_solver.pywrapcp.BooleanVar.__init__ ( self,
* args,
** kwargs )

Reimplemented from ortools.constraint_solver.pywrapcp.IntVar.

Definition at line 4355 of file pywrapcp.py.

Member Function Documentation

◆ Bound()

ortools.constraint_solver.pywrapcp.BooleanVar.Bound ( self)
 Returns true if the min and the max of the expression are equal.

Reimplemented from ortools.constraint_solver.pywrapcp.IntExpr.

Definition at line 4374 of file pywrapcp.py.

◆ Contains()

ortools.constraint_solver.pywrapcp.BooleanVar.Contains ( self,
v )
    This method returns whether the value 'v' is in the domain of the
    variable.

Reimplemented from ortools.constraint_solver.pywrapcp.IntVar.

Definition at line 4398 of file pywrapcp.py.

◆ DebugString()

ortools.constraint_solver.pywrapcp.BooleanVar.DebugString ( self)

Reimplemented from ortools.constraint_solver.pywrapcp.PropagationBaseObject.

Definition at line 4407 of file pywrapcp.py.

◆ DomainIteratorAux()

ortools.constraint_solver.pywrapcp.BooleanVar.DomainIteratorAux ( self,
reversible )
    Creates a domain iterator. When 'reversible' is false, the
    returned object is created on the normal C++ heap and the solver
    does NOT take ownership of the object.

Reimplemented from ortools.constraint_solver.pywrapcp.IntVar.

Definition at line 4404 of file pywrapcp.py.

◆ HoleIteratorAux()

ortools.constraint_solver.pywrapcp.BooleanVar.HoleIteratorAux ( self,
reversible )
    Creates a hole iterator. When 'reversible' is false, the returned
    object is created on the normal C++ heap and the solver does NOT
    take ownership of the object.

Reimplemented from ortools.constraint_solver.pywrapcp.IntVar.

Definition at line 4401 of file pywrapcp.py.

◆ Max()

ortools.constraint_solver.pywrapcp.BooleanVar.Max ( self)

Reimplemented from ortools.constraint_solver.pywrapcp.IntExpr.

Definition at line 4365 of file pywrapcp.py.

◆ Min()

ortools.constraint_solver.pywrapcp.BooleanVar.Min ( self)

Reimplemented from ortools.constraint_solver.pywrapcp.IntExpr.

Definition at line 4359 of file pywrapcp.py.

◆ RemoveInterval()

ortools.constraint_solver.pywrapcp.BooleanVar.RemoveInterval ( self,
l,
u )
    This method removes the interval 'l' .. 'u' from the domain of
    the variable. It assumes that 'l' <= 'u'.

Reimplemented from ortools.constraint_solver.pywrapcp.IntVar.

Definition at line 4383 of file pywrapcp.py.

◆ RemoveValue()

ortools.constraint_solver.pywrapcp.BooleanVar.RemoveValue ( self,
v )
 This method removes the value 'v' from the domain of the variable.

Reimplemented from ortools.constraint_solver.pywrapcp.IntVar.

Definition at line 4380 of file pywrapcp.py.

◆ SetMax()

ortools.constraint_solver.pywrapcp.BooleanVar.SetMax ( self,
m )

Reimplemented from ortools.constraint_solver.pywrapcp.IntExpr.

Definition at line 4368 of file pywrapcp.py.

◆ SetMin()

ortools.constraint_solver.pywrapcp.BooleanVar.SetMin ( self,
m )

Reimplemented from ortools.constraint_solver.pywrapcp.IntExpr.

Definition at line 4362 of file pywrapcp.py.

◆ SetRange()

ortools.constraint_solver.pywrapcp.BooleanVar.SetRange ( self,
l,
u )
 This method sets both the min and the max of the expression.

Reimplemented from ortools.constraint_solver.pywrapcp.IntExpr.

Definition at line 4371 of file pywrapcp.py.

◆ Size()

ortools.constraint_solver.pywrapcp.BooleanVar.Size ( self)
 This method returns the number of values in the domain of the variable.

Reimplemented from ortools.constraint_solver.pywrapcp.IntVar.

Definition at line 4395 of file pywrapcp.py.

◆ Value()

ortools.constraint_solver.pywrapcp.BooleanVar.Value ( self)
    This method returns the value of the variable. This method checks
    before that the variable is bound.

Reimplemented from ortools.constraint_solver.pywrapcp.IntVar.

Definition at line 4377 of file pywrapcp.py.

◆ WhenBound()

ortools.constraint_solver.pywrapcp.BooleanVar.WhenBound ( self,
args )
    *Overload 1:*
    This method attaches a demon that will be awakened when the
    variable is bound.

    |

    *Overload 2:*
    This method attaches a closure that will be awakened when the
    variable is bound.

Reimplemented from ortools.constraint_solver.pywrapcp.IntVar.

Definition at line 4386 of file pywrapcp.py.

◆ WhenDomain()

ortools.constraint_solver.pywrapcp.BooleanVar.WhenDomain ( self,
args )
    *Overload 1:*
    This method attaches a demon that will watch any domain
    modification of the domain of the variable.

    |

    *Overload 2:*
    This method attaches a closure that will watch any domain
    modification of the domain of the variable.

Reimplemented from ortools.constraint_solver.pywrapcp.IntVar.

Definition at line 4392 of file pywrapcp.py.

◆ WhenRange()

ortools.constraint_solver.pywrapcp.BooleanVar.WhenRange ( self,
args )
    *Overload 1:*
    Attach a demon that will watch the min or the max of the expression.

    |

    *Overload 2:*
    Attach a demon that will watch the min or the max of the expression.

Reimplemented from ortools.constraint_solver.pywrapcp.IntExpr.

Definition at line 4389 of file pywrapcp.py.

Property Documentation

◆ thisown

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

Definition at line 4353 of file pywrapcp.py.


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