Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
ortools.constraint_solver.pywrapcp Namespace Reference

Classes

class  _SwigNonDynamicMeta
 
class  Assignment
 
class  AssignmentElement
 
class  BaseLns
 
class  BaseObject
 
class  BooleanVar
 
class  BoundCost
 
class  ChangeValue
 
class  Constraint
 
class  Decision
 
class  DecisionBuilder
 
class  DefaultPhaseParameters
 
class  Demon
 
class  DisjunctiveConstraint
 
class  FirstSolutionStrategy
 
class  GlobalVehicleBreaksConstraint
 
class  IntervalVar
 
class  IntervalVarContainer
 
class  IntervalVarElement
 
class  IntExpr
 
class  IntVar
 
class  IntVarContainer
 
class  IntVarElement
 
class  IntVarIterator
 
class  IntVarLocalSearchFilter
 
class  IntVarLocalSearchOperator
 
class  LocalSearchFilter
 
class  LocalSearchFilterManager
 
class  LocalSearchMetaheuristic
 
class  LocalSearchOperator
 
class  NumericalRevInteger
 
class  OptimizeVar
 
class  Pack
 
class  PathOperator
 
class  PathsMetadata
 
class  PropagationBaseObject
 
class  PyConstraint
 
class  PyConstraintDemon
 
class  PyDecision
 
class  PyDecisionBuilder
 
class  PyDemon
 
class  RevBool
 
class  RevInteger
 
class  RoutingDimension
 
class  RoutingIndexManager
 
class  RoutingModel
 
class  RoutingModelVisitor
 
class  SearchLimit
 
class  SearchMonitor
 
class  SequenceVar
 
class  SequenceVarContainer
 
class  SequenceVarElement
 
class  SimpleBoundCosts
 
class  SolutionCollector
 
class  Solver
 
class  TypeIncompatibilityChecker
 
class  TypeRegulationsChecker
 
class  TypeRegulationsConstraint
 
class  TypeRequirementChecker
 

Functions

 _swig_repr (self)
 
 _swig_setattr_nondynamic_instance_variable (set)
 
 _swig_setattr_nondynamic_class_variable (set)
 
 _swig_add_metaclass (metaclass)
 
 __lshift__ (*args)
 
 DefaultRoutingModelParameters ()
 
 DefaultRoutingSearchParameters ()
 
 FindErrorInRoutingSearchParameters (search_parameters)
 
 SolveModelWithSat (model, search_parameters, initial_solution, solution)
 

Variables

 BOOL_UNSPECIFIED = _pywrapcp.BOOL_UNSPECIFIED
 
 BOOL_FALSE = _pywrapcp.BOOL_FALSE
 
 BOOL_TRUE = _pywrapcp.BOOL_TRUE
 
 cvar = _pywrapcp.cvar
 
 kNoPenalty
 
 kNoDisjunction
 
 kNoDimension
 

Function Documentation

◆ __lshift__()

ortools.constraint_solver.pywrapcp.__lshift__ ( * args)

Definition at line 3652 of file pywrapcp.py.

◆ _swig_add_metaclass()

ortools.constraint_solver.pywrapcp._swig_add_metaclass ( metaclass)
protected
Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass

Definition at line 49 of file pywrapcp.py.

◆ _swig_repr()

ortools.constraint_solver.pywrapcp._swig_repr ( self)
protected

Definition at line 19 of file pywrapcp.py.

◆ _swig_setattr_nondynamic_class_variable()

ortools.constraint_solver.pywrapcp._swig_setattr_nondynamic_class_variable ( set)
protected

Definition at line 40 of file pywrapcp.py.

◆ _swig_setattr_nondynamic_instance_variable()

ortools.constraint_solver.pywrapcp._swig_setattr_nondynamic_instance_variable ( set)
protected

Definition at line 27 of file pywrapcp.py.

◆ DefaultRoutingModelParameters()

ortools.constraint_solver.pywrapcp.DefaultRoutingModelParameters ( )

Definition at line 4572 of file pywrapcp.py.

◆ DefaultRoutingSearchParameters()

ortools.constraint_solver.pywrapcp.DefaultRoutingSearchParameters ( )

Definition at line 4575 of file pywrapcp.py.

◆ FindErrorInRoutingSearchParameters()

ortools.constraint_solver.pywrapcp.FindErrorInRoutingSearchParameters ( search_parameters)
Returns an empty std::string if the routing search parameters are valid, and
a non-empty, human readable error description if they're not.

Definition at line 4578 of file pywrapcp.py.

◆ SolveModelWithSat()

ortools.constraint_solver.pywrapcp.SolveModelWithSat ( model,
search_parameters,
initial_solution,
solution )
Attempts to solve the model using the cp-sat solver. As of 5/2019, will
solve the TSP corresponding to the model if it has a single vehicle.
Therefore the resulting solution might not actually be feasible. Will return
false if a solution could not be found.

Definition at line 6463 of file pywrapcp.py.

Variable Documentation

◆ BOOL_FALSE

ortools.constraint_solver.pywrapcp.BOOL_FALSE = _pywrapcp.BOOL_FALSE

Definition at line 4585 of file pywrapcp.py.

◆ BOOL_TRUE

ortools.constraint_solver.pywrapcp.BOOL_TRUE = _pywrapcp.BOOL_TRUE

Definition at line 4586 of file pywrapcp.py.

◆ BOOL_UNSPECIFIED

ortools.constraint_solver.pywrapcp.BOOL_UNSPECIFIED = _pywrapcp.BOOL_UNSPECIFIED

Definition at line 4584 of file pywrapcp.py.

◆ cvar

ortools.constraint_solver.pywrapcp.cvar = _pywrapcp.cvar

Definition at line 5962 of file pywrapcp.py.

◆ kNoDimension

ortools.constraint_solver.pywrapcp.kNoDimension

Definition at line 5965 of file pywrapcp.py.

◆ kNoDisjunction

ortools.constraint_solver.pywrapcp.kNoDisjunction

Definition at line 5964 of file pywrapcp.py.

◆ kNoPenalty

ortools.constraint_solver.pywrapcp.kNoPenalty

Definition at line 5963 of file pywrapcp.py.