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

Public Member Functions

 __init__ (self, dimension)
 
 DebugString (self)
 
 Post (self)
 
 InitialPropagateWrapper (self)
 
- Public Member Functions inherited from ortools.constraint_solver.pywrapcp.Constraint
 Var (self)
 
 __repr__ (self)
 
 __str__ (self)
 
 __add__ (self, *args)
 
 __radd__ (self, v)
 
 __sub__ (self, *args)
 
 __rsub__ (self, v)
 
 __mul__ (self, *args)
 
 __rmul__ (self, v)
 
 __floordiv__ (self, v)
 
 __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)
 
 __disown__ (self)
 
- Public Member Functions inherited from ortools.constraint_solver.pywrapcp.PropagationBaseObject
 solver (self)
 
 Name (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.Constraint
 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

GlobalVehicleBreaksConstraint ensures breaks constraints are enforced on
all vehicles in the dimension passed to its constructor.
It is intended to be used for dimensions representing time.
A break constraint ensures break intervals fit on the route of a vehicle.
For a given vehicle, it forces break intervals to be disjoint from visit
intervals, where visit intervals start at CumulVar(node) and last for
node_visit_transit[node]. Moreover, it ensures that there is enough time
between two consecutive nodes of a route to do transit and vehicle breaks,
i.e. if Next(nodeA) = nodeB, CumulVar(nodeA) = tA and CumulVar(nodeB) = tB,
then SlackVar(nodeA) >= sum_{breaks [tA, tB)} duration(break).

Definition at line 5983 of file pywrapcp.py.

Constructor & Destructor Documentation

◆ __init__()

ortools.constraint_solver.pywrapcp.GlobalVehicleBreaksConstraint.__init__ ( self,
dimension )

Reimplemented from ortools.constraint_solver.pywrapcp.Constraint.

Definition at line 6000 of file pywrapcp.py.

Member Function Documentation

◆ DebugString()

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

Reimplemented from ortools.constraint_solver.pywrapcp.Constraint.

Definition at line 6003 of file pywrapcp.py.

◆ InitialPropagateWrapper()

ortools.constraint_solver.pywrapcp.GlobalVehicleBreaksConstraint.InitialPropagateWrapper ( self)
    This method performs the initial propagation of the
    constraint. It is called just after the post.

Reimplemented from ortools.constraint_solver.pywrapcp.Constraint.

Definition at line 6009 of file pywrapcp.py.

◆ Post()

ortools.constraint_solver.pywrapcp.GlobalVehicleBreaksConstraint.Post ( self)
    This method is called when the constraint is processed by the
    solver. Its main usage is to attach demons to variables.

Reimplemented from ortools.constraint_solver.pywrapcp.Constraint.

Definition at line 6006 of file pywrapcp.py.

Property Documentation

◆ thisown

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

Definition at line 5997 of file pywrapcp.py.


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