![]() |
Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
__init__ (self, *args, **kwargs) | |
DebugString (self) | |
Add (self, *args) | |
AddObjective (self, objective) | |
EnterSearch (self) | |
SolutionCount (self) | |
Solution (self, n) | |
WallTime (self, n) | |
Branches (self, n) | |
Failures (self, n) | |
ObjectiveValue (self, n) | |
Value (self, n, var) | |
StartValue (self, n, var) | |
EndValue (self, n, var) | |
DurationValue (self, n, var) | |
PerformedValue (self, n, var) | |
ForwardSequence (self, n, var) | |
BackwardSequence (self, n, var) | |
Unperformed (self, n, var) | |
![]() | |
__init__ (self, s) | |
RestartSearch (self) | |
ExitSearch (self) | |
BeginNextDecision (self, b) | |
EndNextDecision (self, b, d) | |
ApplyDecision (self, d) | |
RefuteDecision (self, d) | |
AfterDecision (self, d, apply) | |
BeginFail (self) | |
EndFail (self) | |
BeginInitialPropagation (self) | |
EndInitialPropagation (self) | |
AcceptSolution (self) | |
AtSolution (self) | |
NoMoreSolutions (self) | |
LocalOptimum (self) | |
AcceptDelta (self, delta, deltadelta) | |
AcceptNeighbor (self) | |
ProgressPercent (self) | |
solver (self) | |
__repr__ (self) | |
__str__ (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") | |
Additional Inherited Members | |
![]() | |
kNoProgress = _pywrapcp.SearchMonitor_kNoProgress | |
This class is the root class of all solution collectors. It implements a basic query API to be used independently of the collector used.
Definition at line 2917 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.SolutionCollector.__init__ | ( | self, | |
* | args, | ||
** | kwargs ) |
Definition at line 2926 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.SolutionCollector.Add | ( | self, | |
* | args ) |
Add API.
Definition at line 2933 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.SolutionCollector.AddObjective | ( | self, | |
objective ) |
Definition at line 2937 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.SolutionCollector.BackwardSequence | ( | self, | |
n, | |||
var ) |
This is a shortcut to get the BackwardSequence of 'var' in the nth solution. The backward sequence is the list of ranked interval variables starting from the end of the sequence.
Definition at line 2999 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.SolutionCollector.Branches | ( | self, | |
n ) |
Returns the number of branches when the nth solution was found.
Definition at line 2956 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.SolutionCollector.DebugString | ( | self | ) |
Reimplemented from ortools.constraint_solver.pywrapcp.BaseObject.
Definition at line 2930 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.SolutionCollector.DurationValue | ( | self, | |
n, | |||
var ) |
This is a shortcut to get the DurationValue of 'var' in the nth solution.
Definition at line 2983 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.SolutionCollector.EndValue | ( | self, | |
n, | |||
var ) |
This is a shortcut to get the EndValue of 'var' in the nth solution.
Definition at line 2979 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.SolutionCollector.EnterSearch | ( | self | ) |
Beginning of the search.
Reimplemented from ortools.constraint_solver.pywrapcp.SearchMonitor.
Definition at line 2940 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.SolutionCollector.Failures | ( | self, | |
n ) |
Returns the number of failures encountered at the time of the nth solution.
Definition at line 2960 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.SolutionCollector.ForwardSequence | ( | self, | |
n, | |||
var ) |
This is a shortcut to get the ForwardSequence of 'var' in the nth solution. The forward sequence is the list of ranked interval variables starting from the start of the sequence.
Definition at line 2991 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.SolutionCollector.ObjectiveValue | ( | self, | |
n ) |
Returns the objective value of the nth solution.
Definition at line 2967 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.SolutionCollector.PerformedValue | ( | self, | |
n, | |||
var ) |
This is a shortcut to get the PerformedValue of 'var' in the nth solution.
Definition at line 2987 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.SolutionCollector.Solution | ( | self, | |
n ) |
Returns the nth solution.
Definition at line 2948 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.SolutionCollector.SolutionCount | ( | self | ) |
Returns how many solutions were stored during the search.
Definition at line 2944 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.SolutionCollector.StartValue | ( | self, | |
n, | |||
var ) |
This is a shortcut to get the StartValue of 'var' in the nth solution.
Definition at line 2975 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.SolutionCollector.Unperformed | ( | self, | |
n, | |||
var ) |
This is a shortcut to get the list of unperformed of 'var' in the nth solution.
Definition at line 3007 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.SolutionCollector.Value | ( | self, | |
n, | |||
var ) |
This is a shortcut to get the Value of 'var' in the nth solution.
Definition at line 2971 of file pywrapcp.py.
ortools.constraint_solver.pywrapcp.SolutionCollector.WallTime | ( | self, | |
n ) |
Returns the wall time in ms for the nth solution.
Definition at line 2952 of file pywrapcp.py.
|
static |
Definition at line 2924 of file pywrapcp.py.