CSMOn
Convergence Stabilization Modeling operating in Online mode
Public Member Functions
ISearch Class Referenceabstract

The interface that the search methods must to implement. More...

#include <ISearch.hpp>

Inheritance diagram for ISearch:
Inheritance graph
[legend]

Public Member Functions

virtual void startup ()=0
 Startup the search method.
 
virtual void next (int M)=0
 Obtain the next improvement. More...
 
virtual int getBestPos (double *_x)=0
 Get the best result obtained up to the moment. More...
 
virtual int getNEvals ()=0
 Get the number of fitness function evaluations performed up to the moment. More...
 
virtual double getFitness ()=0
 Get the best fitness value found up to the moment. More...
 

Detailed Description

The interface that the search methods must to implement.

Date
04/Mar/2017
Author
Peter Frank Perroni (pfper.nosp@m.roni.nosp@m.@gmai.nosp@m.l.co.nosp@m.m)

Definition at line 40 of file ISearch.hpp.

Member Function Documentation

virtual int ISearch::getBestPos ( double *  _x)
pure virtual

Get the best result obtained up to the moment.

Parameters
_xA pointer to store the positions of the best result.
Returns
An ID for the best result (implementation specific).

Implemented in PSO.

virtual double ISearch::getFitness ( )
pure virtual

Get the best fitness value found up to the moment.

Returns
The best fitness value found.

Implemented in PSO.

virtual int ISearch::getNEvals ( )
pure virtual

Get the number of fitness function evaluations performed up to the moment.

Returns
The number of evaluations performed.

Implemented in PSO.

virtual void ISearch::next ( int  M)
pure virtual

Obtain the next improvement.

Parameters
MThe maximum number of evaluations allowed.

Implemented in PSO.


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