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

Detailed Description

A DecisionBuilder is responsible for creating the search tree. The
important method is Next(), which returns the next decision to execute.

Definition at line 2257 of file pywrapcp.py.

Inheritance diagram for ortools.constraint_solver.pywrapcp.DecisionBuilder:
ortools.constraint_solver.pywrapcp.BaseObject ortools.constraint_solver.pywrapcp.PyDecisionBuilder

Public Member Functions

 __init__ (self)
 NextWrapper (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.DecisionBuilder.__init__ ( self)

Definition at line 2265 of file pywrapcp.py.

Member Function Documentation

◆ __disown__()

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

Definition at line 2290 of file pywrapcp.py.

◆ __repr__()

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

Definition at line 2285 of file pywrapcp.py.

◆ __str__()

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

Definition at line 2288 of file pywrapcp.py.

◆ DebugString()

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

◆ NextWrapper()

ortools.constraint_solver.pywrapcp.DecisionBuilder.NextWrapper ( self,
s )
This is the main method of the decision builder class. It must
return a decision (an instance of the class Decision). If it
returns nullptr, this means that the decision builder has finished
its work.

Reimplemented in ortools.constraint_solver.pywrapcp.PyDecisionBuilder.

Definition at line 2273 of file pywrapcp.py.

Property Documentation

◆ thisown

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

Definition at line 2263 of file pywrapcp.py.


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