Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set
// doxy/ or-tools/ src/ constraint_solver/

operations_research::SearchLog Class Reference

Search Log. More...

#include <constraint_solveri.h>

Inheritance diagram for operations_research::SearchLog:

operations_research::SearchMonitor operations_research::BaseObject

List of all members.

Public Member Functions

 SearchLog (Solver *const s, OptimizeVar *const obj, IntVar *const var, ResultCallback< string > *display_callback, int period)
 Search Log.
virtual ~SearchLog ()
virtual void EnterSearch ()
 Beginning of the search.
virtual void ExitSearch ()
 End of the search.
virtual bool AtSolution ()
 This method is called when a valid solution is found.
virtual void BeginFail ()
 Just when the failure occurs.
virtual void NoMoreSolutions ()
 When the search tree is finished.
virtual void ApplyDecision (Decision *const decision)
 Before applying the decision.
virtual void RefuteDecision (Decision *const decision)
 Before refuting the Decision.
void OutputDecision ()
void Maintain ()
virtual void BeginInitialPropagation ()
 Before the initial propagation.
virtual void EndInitialPropagation ()
 After the initial propagation.

Protected Member Functions

virtual void OutputLine (const string &line)
 Bottleneck function used for all UI related output.


Detailed Description

Search Log.

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

Definition at line 1312 of file constraint_solveri.h.


Constructor & Destructor Documentation

operations_research::SearchLog::SearchLog ( Solver *const   s,
OptimizeVar *const   obj,
IntVar *const   var,
ResultCallback< string > *  display_callback,
int  period 
)

Search Log.

Definition at line 50 of file search.cc.

operations_research::SearchLog::~SearchLog (  )  [virtual]

Definition at line 75 of file search.cc.


Member Function Documentation

void operations_research::SearchLog::EnterSearch (  )  [virtual]

Beginning of the search.

Search Monitor.

Reimplemented from operations_research::SearchMonitor.

Definition at line 77 of file search.cc.

void operations_research::SearchLog::ExitSearch (  )  [virtual]

End of the search.

Reimplemented from operations_research::SearchMonitor.

Definition at line 84 of file search.cc.

bool operations_research::SearchLog::AtSolution (  )  [virtual]

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.

Reimplemented from operations_research::SearchMonitor.

Definition at line 99 of file search.cc.

void operations_research::SearchLog::BeginFail (  )  [virtual]

Just when the failure occurs.

Reimplemented from operations_research::SearchMonitor.

Definition at line 160 of file search.cc.

void operations_research::SearchLog::NoMoreSolutions (  )  [virtual]

When the search tree is finished.

Reimplemented from operations_research::SearchMonitor.

Definition at line 164 of file search.cc.

void operations_research::SearchLog::ApplyDecision ( Decision *const   d  )  [virtual]

Before applying the decision.

Reimplemented from operations_research::SearchMonitor.

Definition at line 185 of file search.cc.

void operations_research::SearchLog::RefuteDecision ( Decision *const   d  )  [virtual]

Before refuting the Decision.

Reimplemented from operations_research::SearchMonitor.

Definition at line 193 of file search.cc.

void operations_research::SearchLog::OutputDecision (  ) 

Definition at line 198 of file search.cc.

void operations_research::SearchLog::Maintain (  ) 

Definition at line 227 of file search.cc.

void operations_research::SearchLog::BeginInitialPropagation (  )  [virtual]

Before the initial propagation.

Reimplemented from operations_research::SearchMonitor.

Definition at line 234 of file search.cc.

void operations_research::SearchLog::EndInitialPropagation (  )  [virtual]

After the initial propagation.

Reimplemented from operations_research::SearchMonitor.

Definition at line 238 of file search.cc.

void operations_research::SearchLog::OutputLine ( const string &  line  )  [protected, virtual]

Bottleneck function used for all UI related output.

Definition at line 247 of file search.cc.


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