Public Member Functions
mets::solution_recorder Class Reference

The solution recorder is used by search algorithm, at the end of each iteration, to record the best seen solution. More...

#include <abstract-search.hh>

Inheritance diagram for mets::solution_recorder:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual bool accept (const feasible_solution &sol)=0
 Accept is called at the end of each iteration for an opportunity to record the best move ever.
virtual gol_type best_cost () const =0
solution_recorderoperator= (const solution_recorder &)
 Unimplemented assignment operator.
 solution_recorder ()
 Default ctor.
 solution_recorder (const solution_recorder &)
 Unimplemented copy ctor.
virtual ~solution_recorder ()
 A virtual dtor.

Detailed Description

The solution recorder is used by search algorithm, at the end of each iteration, to record the best seen solution.

The concept of best is externalized so that you can record the best ever solution met or the best solution that matches some other criteria (e.g. feasibility constraints relaxed in the feasible_solution implementation of the cost function).

Definition at line 51 of file abstract-search.hh.


Constructor & Destructor Documentation

Default ctor.

Definition at line 54 of file abstract-search.hh.

Unimplemented copy ctor.

A virtual dtor.

Definition at line 339 of file abstract-search.hh.


Member Function Documentation

virtual bool mets::solution_recorder::accept ( const feasible_solution sol) [pure virtual]

Accept is called at the end of each iteration for an opportunity to record the best move ever.

(this is a chain of responsibility)

Implemented in mets::best_ever_solution.

virtual gol_type mets::solution_recorder::best_cost ( ) const [pure virtual]

Implemented in mets::best_ever_solution.

solution_recorder& mets::solution_recorder::operator= ( const solution_recorder )

Unimplemented assignment operator.


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


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:38:54