realea::MA2LSI Class Reference
memetic algorithm following the model proposed in the Daniel Molina's thesis
More...
#include <ma2lsi.h>
List of all members.
Detailed Description
memetic algorithm following the model proposed in the Daniel Molina's thesis
Definition at line 35 of file ma2lsi.h.
Constructor & Destructor Documentation
Member Function Documentation
void MA2LSI::disturb |
( |
tChromosomeReal & |
sol |
) |
[protected] |
Disturb the solution (similar to mutation it uses the disruption_size
Definition at line 256 of file ma2lsi.cc.
Check if there is enough diversity
Definition at line 227 of file ma2lsi.cc.
unsigned MA2LSI::realApply |
( |
tChromosomeReal & |
sol, |
|
|
tFitness & |
fitness | |
|
) |
| | |
Alter the EA and after the LS, then the EA again, the LS, ...
Definition at line 271 of file ma2lsi.cc.
void MA2LSI::setDif |
( |
bool |
debug, |
|
|
string |
ident, |
|
|
unsigned |
id, |
|
|
tFitness |
oldfit, |
|
|
tFitness |
newfit | |
|
) |
| | [protected] |
Set the differences
Definition at line 214 of file ma2lsi.cc.
void MA2LSI::setDisruptionSize |
( |
double |
size |
) |
|
Set a distorsion size when the solution is a local optimum
- Parameters:
-
| size | size of maximum disruption |
Definition at line 46 of file ma2lsi.cc.
void MA2LSI::setEffortRatio |
( |
double |
ratio |
) |
|
- Parameters:
-
| ratio. | Set the global ratio invested into the Local Search |
| ratio | global ls/total ratio (change the intensity, because only one LS improvement is made) |
Definition at line 30 of file ma2lsi.cc.
Set the restart strategy. If it is not called never it will make a restart.
Definition at line 125 of file ma2lsi.cc.
The documentation for this class was generated from the following files: