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

Public Types | |
| typedef M::EOType::Fitness | Fitness |
| Alias for the fitness. | |
Public Member Functions | |
| void | init (const Fitness &__fit) |
| Procedure which all that needs a moRandImprSelect. | |
| bool | update (const M &__move, const Fitness &__fit) |
| Function that updates the fitness and move vectors. | |
| void | operator() (M &__move, Fitness &__fit) throw (EmptySelection) |
| The move selection. | |
Private Attributes | |
| Fitness | init_fit |
| Fitness of the current solution. | |
| std::vector< Fitness > | vect_better_fit |
| Candidate fitnesse vector. | |
| std::vector< M > | vect_better_moves |
| Candidate move vector. | |
All the neighbors are considered. One of them that enables an improvment of the objective function is choosen.
Definition at line 25 of file moRandImprSelect.h.
|
||||||||||
|
Procedure which all that needs a moRandImprSelect. Give a value to the initialise fitness. Clean the move and fitness vectors.
Implements moMoveSelect< M >. Definition at line 40 of file moRandImprSelect.h. References moRandImprSelect< M >::init_fit, moRandImprSelect< M >::vect_better_fit, and moRandImprSelect< M >::vect_better_moves. |
|
||||||||||||||||
|
Function that updates the fitness and move vectors. if a move give a better fitness than the initial fitness, it is saved and the fitness too.
Implements moMoveSelect< M >. Definition at line 56 of file moRandImprSelect.h. References moRandImprSelect< M >::init_fit, moRandImprSelect< M >::vect_better_fit, and moRandImprSelect< M >::vect_better_moves. |
|
||||||||||||||||
|
The move selection. One the saved move is randomly chosen.
Definition at line 77 of file moRandImprSelect.h. References moRandImprSelect< M >::vect_better_fit, and moRandImprSelect< M >::vect_better_moves. |
1.4.6