#include <moGenSolContinue.h>
Inheritance diagram for moGenSolContinue< EOT >:

Public Member Functions | |
| moGenSolContinue (unsigned int __maxNumGen) | |
| Basic constructor. | |
| bool | operator() (const EOT &__sol) |
| Function that activates the stop criterion. | |
| void | init () |
| Procedure which allows to initialise all the stuff needed. | |
Private Attributes | |
| unsigned int | maxNumGen |
| Iteration maximum number. | |
| unsigned int | numGen |
| Iteration current number. | |
The stopping criterion corresponds to a maximum number of iteration.
Definition at line 21 of file moGenSolContinue.h.
| moGenSolContinue< EOT >::moGenSolContinue | ( | unsigned int | __maxNumGen | ) | [inline] |
Basic constructor.
| __maxNumGen | the maximum number of generation. |
Definition at line 30 of file moGenSolContinue.h.
| bool moGenSolContinue< EOT >::operator() | ( | const EOT & | __sol | ) | [inline, virtual] |
Function that activates the stop criterion.
Increments the counter and returns true if the current number of iteration is lower than the given maximum number of iterations.
| __sol | the current solution. |
Implements eoUF< const EOT &, bool >.
Definition at line 42 of file moGenSolContinue.h.
References moGenSolContinue< EOT >::maxNumGen, and moGenSolContinue< EOT >::numGen.
| void moGenSolContinue< EOT >::init | ( | ) | [inline, virtual] |
Procedure which allows to initialise all the stuff needed.
It can be also used to reinitialize the counter all the needed things.
Implements moSolContinue< EOT >.
Definition at line 51 of file moGenSolContinue.h.
References moGenSolContinue< EOT >::numGen.
1.5.2