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

Public Member Functions

 __init__ (self, *args, **kwargs)
 
 DebugString (self)
 
 RankFirst (self, index)
 
 RankNotFirst (self, index)
 
 RankLast (self, index)
 
 RankNotLast (self, index)
 
 Interval (self, index)
 
 Next (self, index)
 
 Size (self)
 
 __repr__ (self)
 
 __str__ (self)
 
- 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.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

A sequence variable is a variable whose domain is a set of possible
orderings of the interval variables. It allows ordering of tasks. It
has two sets of methods: ComputePossibleFirstsAndLasts(), which
returns the list of interval variables that can be ranked first or
last; and RankFirst/RankNotFirst/RankLast/RankNotLast, which can be
used to create the search decision.

Definition at line 3119 of file pywrapcp.py.

Constructor & Destructor Documentation

◆ __init__()

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

Reimplemented from ortools.constraint_solver.pywrapcp.PropagationBaseObject.

Definition at line 3131 of file pywrapcp.py.

Member Function Documentation

◆ __repr__()

ortools.constraint_solver.pywrapcp.SequenceVar.__repr__ ( self)

Reimplemented from ortools.constraint_solver.pywrapcp.PropagationBaseObject.

Definition at line 3177 of file pywrapcp.py.

◆ __str__()

ortools.constraint_solver.pywrapcp.SequenceVar.__str__ ( self)

Reimplemented from ortools.constraint_solver.pywrapcp.BaseObject.

Definition at line 3180 of file pywrapcp.py.

◆ DebugString()

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

Reimplemented from ortools.constraint_solver.pywrapcp.PropagationBaseObject.

Definition at line 3134 of file pywrapcp.py.

◆ Interval()

ortools.constraint_solver.pywrapcp.SequenceVar.Interval ( self,
index )
 Returns the index_th interval of the sequence.

Definition at line 3165 of file pywrapcp.py.

◆ Next()

ortools.constraint_solver.pywrapcp.SequenceVar.Next ( self,
index )
 Returns the next of the index_th interval of the sequence.

Definition at line 3169 of file pywrapcp.py.

◆ RankFirst()

ortools.constraint_solver.pywrapcp.SequenceVar.RankFirst ( self,
index )
    Ranks the index_th interval var first of all unranked interval
    vars. After that, it will no longer be considered ranked.

Definition at line 3137 of file pywrapcp.py.

◆ RankLast()

ortools.constraint_solver.pywrapcp.SequenceVar.RankLast ( self,
index )
    Ranks the index_th interval var first of all unranked interval
    vars. After that, it will no longer be considered ranked.

Definition at line 3151 of file pywrapcp.py.

◆ RankNotFirst()

ortools.constraint_solver.pywrapcp.SequenceVar.RankNotFirst ( self,
index )
    Indicates that the index_th interval var will not be ranked first
    of all currently unranked interval vars.

Definition at line 3144 of file pywrapcp.py.

◆ RankNotLast()

ortools.constraint_solver.pywrapcp.SequenceVar.RankNotLast ( self,
index )
    Indicates that the index_th interval var will not be ranked first
    of all currently unranked interval vars.

Definition at line 3158 of file pywrapcp.py.

◆ Size()

ortools.constraint_solver.pywrapcp.SequenceVar.Size ( self)
 Returns the number of interval vars in the sequence.

Definition at line 3173 of file pywrapcp.py.

Property Documentation

◆ thisown

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

Definition at line 3129 of file pywrapcp.py.


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