METSlib  0.6
Public Member Functions | List of all members
mets::evaluable_solution Class Referenceabstract

A copyable and evaluable solution implementation,. More...

#include <model.hh>

Inheritance diagram for mets::evaluable_solution:
Inheritance graph
Collaboration diagram for mets::evaluable_solution:
Collaboration graph

Public Member Functions

virtual gol_type cost_function () const =0
 Cost function to be minimized. More...
 
- Public Member Functions inherited from mets::feasible_solution
virtual ~feasible_solution ()
 Virtual dtor.
 
- Public Member Functions inherited from mets::copyable
virtual void copy_from (const copyable &)=0
 

Detailed Description

A copyable and evaluable solution implementation,.

All you need, if you implement your own mets::solution_recorder, is to derive from the almost empty mets::feasible_solution. However, if you want to use the provided mets::best_ever_recorder you need to derive from this class (that also defines an interface to copy and evaluate a solution).

See Also
mets::best_ever_recorder

Member Function Documentation

virtual gol_type mets::evaluable_solution::cost_function ( ) const
pure virtual

Cost function to be minimized.

The cost function is the target that the search algorithm tries to minimize.

You must implement this for your problem.

Implemented in mets::permutation_problem.


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

Return to METSlib home page