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

Public Member Functions

 __init__ (self)
 
 RunWrapper (self, s)
 
 Priority (self)
 
 DebugString (self)
 
 Inhibit (self, s)
 
 Desinhibit (self, s)
 
 __disown__ (self)
 
- Public Member Functions inherited from ortools.constraint_solver.pywrapcp.BaseObject
 __str__ (self)
 
 __repr__ (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")
 

Detailed Description

A Demon is the base element of a propagation queue. It is the main
  object responsible for implementing the actual propagation
  of the constraint and pruning the inconsistent values in the domains
  of the variables. The main concept is that demons are listeners that are
  attached to the variables and listen to their modifications.
There are two methods:
 - Run() is the actual method called when the demon is processed.
 - priority() returns its priority. Standard priorities are slow, normal
   or fast. "immediate" is reserved for variables and is treated separately.

Definition at line 2063 of file pywrapcp.py.

Constructor & Destructor Documentation

◆ __init__()

ortools.constraint_solver.pywrapcp.Demon.__init__ ( self)
    This indicates the priority of a demon. Immediate demons are treated
    separately and corresponds to variables.

Reimplemented from ortools.constraint_solver.pywrapcp.BaseObject.

Reimplemented in ortools.constraint_solver.pywrapcp.PyConstraintDemon.

Definition at line 2079 of file pywrapcp.py.

Member Function Documentation

◆ __disown__()

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

Reimplemented from ortools.constraint_solver.pywrapcp.BaseObject.

Definition at line 2116 of file pywrapcp.py.

◆ DebugString()

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

◆ Desinhibit()

ortools.constraint_solver.pywrapcp.Demon.Desinhibit ( self,
s )
 This method un-inhibits the demon that was previously inhibited.

Definition at line 2113 of file pywrapcp.py.

◆ Inhibit()

ortools.constraint_solver.pywrapcp.Demon.Inhibit ( self,
s )
    This method inhibits the demon in the search tree below the
    current position.

Definition at line 2106 of file pywrapcp.py.

◆ Priority()

ortools.constraint_solver.pywrapcp.Demon.Priority ( self)
    This method returns the priority of the demon. Usually a demon is
    fast, slow or normal. Immediate demons are reserved for internal
    use to maintain variables.

Reimplemented in ortools.constraint_solver.pywrapcp.PyConstraintDemon.

Definition at line 2095 of file pywrapcp.py.

◆ RunWrapper()

ortools.constraint_solver.pywrapcp.Demon.RunWrapper ( self,
s )
 This is the main callback of the demon.

Reimplemented in ortools.constraint_solver.pywrapcp.PyDemon.

Definition at line 2091 of file pywrapcp.py.

Property Documentation

◆ thisown

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

Definition at line 2076 of file pywrapcp.py.


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