#include <moImprBestFitAspirCrit.h>
Inheritance diagram for moImprBestFitAspirCrit< M >:

Public Types | |
| typedef M::EOType::Fitness | Fitness |
| Alias for the fitness. | |
Public Member Functions | |
| moImprBestFitAspirCrit () | |
| Contructor. | |
| void | init () |
| Initialisation procedure. | |
| bool | operator() (const M &__move, const Fitness &__fit) |
| Function that indicates if the fit is better that the already saved fit. | |
Private Attributes | |
| Fitness | best_fit |
| Best fitness found until now. | |
| bool | first_time |
| Indicates that a fitness has been already saved or not. | |
This criterion is satisfied when a given fitness is the best ever considered.
Definition at line 22 of file moImprBestFitAspirCrit.h.
| bool moImprBestFitAspirCrit< M >::operator() | ( | const M & | __move, | |
| const Fitness & | __fit | |||
| ) | [inline] |
Function that indicates if the fit is better that the already saved fit.
The first time, the function only saved the current move and fitness.
| __move | a move. | |
| __fit | a fitnes linked to the move. |
Definition at line 52 of file moImprBestFitAspirCrit.h.
References moImprBestFitAspirCrit< M >::best_fit, and moImprBestFitAspirCrit< M >::first_time.
1.5.2