![]() |
Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
|
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) | |
![]() | |
__init__ (self, s) | |
solver (self) | |
Name (self) | |
__disown__ (self) | |
![]() | |
__init__ (self) | |
__str__ (self) | |
__repr__ (self) | |
__disown__ (self) | |
Properties | |
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") | |
![]() | |
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") | |
![]() | |
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") | |
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 3354 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.SequenceVar.__init__ | ( | self, | |
* | args, | ||
** | kwargs ) |
Definition at line 3366 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.SequenceVar.__repr__ | ( | self | ) |
Definition at line 3412 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.SequenceVar.__str__ | ( | self | ) |
Definition at line 3415 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.SequenceVar.DebugString | ( | self | ) |
Reimplemented from ortools.constraint_solver.pywrapcp.PropagationBaseObject.
Definition at line 3369 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.SequenceVar.Interval | ( | self, | |
index ) |
Returns the index_th interval of the sequence.
Definition at line 3400 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.SequenceVar.Next | ( | self, | |
index ) |
Returns the next of the index_th interval of the sequence.
Definition at line 3404 of file pywrapcp.py.
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 3372 of file pywrapcp.py.
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 3386 of file pywrapcp.py.
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 3379 of file pywrapcp.py.
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 3393 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.SequenceVar.Size | ( | self | ) |
Returns the number of interval vars in the sequence.
Definition at line 3408 of file pywrapcp.py.
|
static |
Definition at line 3364 of file pywrapcp.py.