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

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 2218 of file pywrapcp.py.

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
 __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")
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")

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 2226 of file pywrapcp.py.

Member Function Documentation

◆ __disown__()

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

Definition at line 2250 of file pywrapcp.py.

◆ __repr__()

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

Definition at line 2245 of file pywrapcp.py.

◆ __str__()

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

Definition at line 2248 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 2234 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 2242 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 2238 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 2224 of file pywrapcp.py.


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