OR-Tools  8.0
SearchLog

Detailed Description

The base class of all search logs that periodically outputs information when the search is running.

Definition at line 2025 of file constraint_solveri.h.

Public Member Functions

 SearchLog (Solver *const s, OptimizeVar *const obj, IntVar *const var, double scaling_factor, double offset, std::function< std::string()> display_callback, int period)
 
 ~SearchLog () override
 
void EnterSearch () override
 
void ExitSearch () override
 
bool AtSolution () override
 
void BeginFail () override
 
void NoMoreSolutions () override
 
void AcceptUncheckedNeighbor () override
 
void ApplyDecision (Decision *const decision) override
 
void RefuteDecision (Decision *const decision) override
 
void OutputDecision ()
 
void Maintain ()
 
void BeginInitialPropagation () override
 
void EndInitialPropagation () override
 
std::string DebugString () const override
 

Protected Member Functions

virtual void OutputLine (const std::string &line)
 

Constructor & Destructor Documentation

◆ SearchLog()

SearchLog ( Solver *const  s,
OptimizeVar *const  obj,
IntVar *const  var,
double  scaling_factor,
double  offset,
std::function< std::string()>  display_callback,
int  period 
)

Definition at line 56 of file search.cc.

◆ ~SearchLog()

~SearchLog ( )
override

Definition at line 79 of file search.cc.

Member Function Documentation

◆ AcceptUncheckedNeighbor()

void AcceptUncheckedNeighbor ( )
override

Definition at line 174 of file search.cc.

◆ ApplyDecision()

void ApplyDecision ( Decision *const  decision)
override

Definition at line 194 of file search.cc.

◆ AtSolution()

bool AtSolution ( )
override

Definition at line 104 of file search.cc.

◆ BeginFail()

void BeginFail ( )
override

Definition at line 176 of file search.cc.

◆ BeginInitialPropagation()

void BeginInitialPropagation ( )
override

Definition at line 240 of file search.cc.

◆ DebugString()

std::string DebugString ( ) const
override

Definition at line 81 of file search.cc.

◆ EndInitialPropagation()

void EndInitialPropagation ( )
override

Definition at line 242 of file search.cc.

◆ EnterSearch()

void EnterSearch ( )
override

Definition at line 83 of file search.cc.

◆ ExitSearch()

void ExitSearch ( )
override

Definition at line 91 of file search.cc.

◆ Maintain()

void Maintain ( )

Definition at line 233 of file search.cc.

◆ NoMoreSolutions()

void NoMoreSolutions ( )
override

Definition at line 178 of file search.cc.

◆ OutputDecision()

void OutputDecision ( )

Definition at line 207 of file search.cc.

◆ OutputLine()

void OutputLine ( const std::string &  line)
protectedvirtual

Definition at line 250 of file search.cc.

◆ RefuteDecision()

void RefuteDecision ( Decision *const  decision)
override

Definition at line 202 of file search.cc.


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