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

Public Member Functions

 __init__ (self)
 
 ApplyWrapper (self, s)
 
 RefuteWrapper (self, s)
 
 DebugString (self)
 
 __repr__ (self)
 
 __str__ (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.BaseObject
 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 

Detailed Description

A Decision represents a choice point in the search tree. The two main
methods are Apply() to go left, or Refute() to go right.

Definition at line 1984 of file pywrapcp.py.

Constructor & Destructor Documentation

◆ __init__()

ortools.constraint_solver.pywrapcp.Decision.__init__ ( self)

Reimplemented from ortools.constraint_solver.pywrapcp.BaseObject.

Definition at line 1992 of file pywrapcp.py.

Member Function Documentation

◆ __disown__()

ortools.constraint_solver.pywrapcp.Decision.__disown__ ( self)

Reimplemented from ortools.constraint_solver.pywrapcp.BaseObject.

Definition at line 2016 of file pywrapcp.py.

◆ __repr__()

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

Reimplemented from ortools.constraint_solver.pywrapcp.BaseObject.

Definition at line 2011 of file pywrapcp.py.

◆ __str__()

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

Reimplemented from ortools.constraint_solver.pywrapcp.BaseObject.

Definition at line 2014 of file pywrapcp.py.

◆ ApplyWrapper()

ortools.constraint_solver.pywrapcp.Decision.ApplyWrapper ( self,
s )
 Apply will be called first when the decision is executed.

Reimplemented in ortools.constraint_solver.pywrapcp.PyDecision.

Definition at line 2000 of file pywrapcp.py.

◆ DebugString()

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

Reimplemented from ortools.constraint_solver.pywrapcp.BaseObject.

Reimplemented in ortools.constraint_solver.pywrapcp.PyDecision.

Definition at line 2008 of file pywrapcp.py.

◆ RefuteWrapper()

ortools.constraint_solver.pywrapcp.Decision.RefuteWrapper ( self,
s )
 Refute will be called after a backtrack.

Reimplemented in ortools.constraint_solver.pywrapcp.PyDecision.

Definition at line 2004 of file pywrapcp.py.

Property Documentation

◆ thisown

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

Definition at line 1990 of file pywrapcp.py.


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