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

Detailed Description

A search monitor is a simple set of callbacks to monitor all search events

Definition at line 2493 of file pywrapcp.py.

Inheritance diagram for ortools.constraint_solver.pywrapcp.SearchMonitor:
ortools.constraint_solver.pywrapcp.BaseObject ortools.constraint_solver.pywrapcp.SearchLimit ortools.constraint_solver.pywrapcp.SolutionCollector

Public Member Functions

 __init__ (self, s)
 EnterSearch (self)
 RestartSearch (self)
 ExitSearch (self)
 BeginNextDecision (self, b)
 EndNextDecision (self, b, d)
 ApplyDecision (self, d)
 RefuteDecision (self, d)
 AfterDecision (self, d, apply)
 BeginFail (self)
 EndFail (self)
 BeginInitialPropagation (self)
 EndInitialPropagation (self)
 AcceptSolution (self)
 AtSolution (self)
 NoMoreSolutions (self)
 AcceptDelta (self, delta, deltadelta)
 AcceptNeighbor (self)
 ProgressPercent (self)
 solver (self)
 __repr__ (self)
 __str__ (self)
 __disown__ (self)
Public Member Functions inherited from ortools.constraint_solver.pywrapcp.BaseObject
 __init__ (self)
 DebugString (self)
 __str__ (self)
 __repr__ (self)
 __disown__ (self)

Static Public Attributes

 kNoProgress = _pywrapcp.SearchMonitor_kNoProgress

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.SearchMonitor.__init__ ( self,
s )

Definition at line 2499 of file pywrapcp.py.

Member Function Documentation

◆ __disown__()

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

Definition at line 2601 of file pywrapcp.py.

◆ __repr__()

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

Definition at line 2596 of file pywrapcp.py.

◆ __str__()

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

Definition at line 2599 of file pywrapcp.py.

◆ AcceptDelta()

ortools.constraint_solver.pywrapcp.SearchMonitor.AcceptDelta ( self,
delta,
deltadelta )

Definition at line 2578 of file pywrapcp.py.

◆ AcceptNeighbor()

ortools.constraint_solver.pywrapcp.SearchMonitor.AcceptNeighbor ( self)
After accepting a neighbor during local search.

Definition at line 2582 of file pywrapcp.py.

◆ AcceptSolution()

ortools.constraint_solver.pywrapcp.SearchMonitor.AcceptSolution ( self)
This method is called when a solution is found. It asserts whether the
solution is valid. A value of false indicates that the solution
should be discarded.

Definition at line 2558 of file pywrapcp.py.

◆ AfterDecision()

ortools.constraint_solver.pywrapcp.SearchMonitor.AfterDecision ( self,
d,
apply )
Just after refuting or applying the decision, apply is true after Apply.
This is called only if the Apply() or Refute() methods have not failed.

Definition at line 2535 of file pywrapcp.py.

◆ ApplyDecision()

ortools.constraint_solver.pywrapcp.SearchMonitor.ApplyDecision ( self,
d )
Before applying the decision.

Definition at line 2527 of file pywrapcp.py.

◆ AtSolution()

ortools.constraint_solver.pywrapcp.SearchMonitor.AtSolution ( self)
This method is called when a valid solution is found. If the
return value is true, then search will resume after. If the result
is false, then search will stop there.

Definition at line 2566 of file pywrapcp.py.

◆ BeginFail()

ortools.constraint_solver.pywrapcp.SearchMonitor.BeginFail ( self)
Just when the failure occurs.

Definition at line 2542 of file pywrapcp.py.

◆ BeginInitialPropagation()

ortools.constraint_solver.pywrapcp.SearchMonitor.BeginInitialPropagation ( self)
Before the initial propagation.

Definition at line 2550 of file pywrapcp.py.

◆ BeginNextDecision()

ortools.constraint_solver.pywrapcp.SearchMonitor.BeginNextDecision ( self,
b )
Before calling DecisionBuilder::Next.

Reimplemented in ortools.constraint_solver.pywrapcp.SearchLimit.

Definition at line 2519 of file pywrapcp.py.

◆ EndFail()

ortools.constraint_solver.pywrapcp.SearchMonitor.EndFail ( self)
After completing the backtrack.

Definition at line 2546 of file pywrapcp.py.

◆ EndInitialPropagation()

ortools.constraint_solver.pywrapcp.SearchMonitor.EndInitialPropagation ( self)
After the initial propagation.

Definition at line 2554 of file pywrapcp.py.

◆ EndNextDecision()

ortools.constraint_solver.pywrapcp.SearchMonitor.EndNextDecision ( self,
b,
d )
After calling DecisionBuilder::Next, along with the returned decision.

Definition at line 2523 of file pywrapcp.py.

◆ EnterSearch()

ortools.constraint_solver.pywrapcp.SearchMonitor.EnterSearch ( self)
Beginning of the search.

Reimplemented in ortools.constraint_solver.pywrapcp.SearchLimit, and ortools.constraint_solver.pywrapcp.SolutionCollector.

Definition at line 2507 of file pywrapcp.py.

◆ ExitSearch()

ortools.constraint_solver.pywrapcp.SearchMonitor.ExitSearch ( self)
End of the search.

Definition at line 2515 of file pywrapcp.py.

◆ NoMoreSolutions()

ortools.constraint_solver.pywrapcp.SearchMonitor.NoMoreSolutions ( self)
When the search tree is finished.

Definition at line 2574 of file pywrapcp.py.

◆ ProgressPercent()

ortools.constraint_solver.pywrapcp.SearchMonitor.ProgressPercent ( self)
Returns a percentage representing the propress of the search before
reaching limits.

Definition at line 2586 of file pywrapcp.py.

◆ RefuteDecision()

ortools.constraint_solver.pywrapcp.SearchMonitor.RefuteDecision ( self,
d )
Before refuting the decision.

Reimplemented in ortools.constraint_solver.pywrapcp.SearchLimit.

Definition at line 2531 of file pywrapcp.py.

◆ RestartSearch()

ortools.constraint_solver.pywrapcp.SearchMonitor.RestartSearch ( self)
Restart the search.

Definition at line 2511 of file pywrapcp.py.

◆ solver()

ortools.constraint_solver.pywrapcp.SearchMonitor.solver ( self)

Definition at line 2593 of file pywrapcp.py.

Member Data Documentation

◆ kNoProgress

ortools.constraint_solver.pywrapcp.SearchMonitor.kNoProgress = _pywrapcp.SearchMonitor_kNoProgress
static

Definition at line 2497 of file pywrapcp.py.

Property Documentation

◆ thisown

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

Definition at line 2496 of file pywrapcp.py.


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