Commit graph

275 commits

Author SHA1 Message Date
evomarc
41ff11bd7f I have separated the include files into
eo   everything that is general to any representation
   es.h everything about real representation (in es dir)
   ga.h everything related to bitstring representation (in ga dir)

To be continued by gp.h, and ...

This has lead to some slight modifications in test file eobin and all tutorial
examples files...
2001-01-27 07:41:46 +00:00
evomarc
c917207b5d Added the bounds to all eoRealOp operators (and to the eoNormalMutation).
The eoESObjectiveBounds should soon dissapear!!
2001-01-26 18:26:30 +00:00
evomarc
70caa91b22 Typos in comments 2001-01-26 17:12:13 +00:00
evomarc
576249509b Some includes were missing in eoPop and eoOp that I had not noticed before
trying to compile test/t-eoSymreg.cpp
2001-01-26 17:09:33 +00:00
evomarc
ce031f10a3 Added eoRandomReduce 2001-01-26 04:06:09 +00:00
evomarc
42ac826f3c Added ranking selection (eoRankingSelect) and (linear) fitness scaling in
proportional selection (a completely different file, eoFitnessScalingSelect.h)
2001-01-25 16:13:15 +00:00
evomarc
c62521648b Added the shuffle method 2001-01-16 09:49:46 +00:00
evomarc
51f3b56fd2 Added the normal and 1/5 mutations (file es/eoNormalMutation.h) 2001-01-16 07:20:02 +00:00
evomarc
20b70de2a1 Added the normal mutation - and the 1/5 mutation 2001-01-16 07:18:45 +00:00
evomarc
a8bf667774 Added the eoRandomReduce class - hence I also added the shuffle method
in eoPop (I had been postponing that for a long time!) which in turn required
another class of random generator (whose operator() takes an unsigned as argument)
2001-01-16 05:52:01 +00:00
evomarc
f988b42fed Corrected some error in variable name after last changes in method append 2001-01-12 21:31:42 +00:00
evomarc
e532234d1c New versions of bounds for real variables.
Should supersede eoEsObjectiveBounds, whose name was misleading anyway
as this can be used in any REal-ceded GA for isntance
2001-01-11 11:02:37 +00:00
evomarc
4b2bb7f564 GOing to the generic operators: some additions (eoGeneric*)
and some modifications in eoFixedLength and eoVariableLength.
2001-01-11 10:48:31 +00:00
evomarc
61a85582d5 Added the namespace eo for the global variable rng in eoRNG.cpp
Also added "using eo::rng" in eoRNG.h so nothing has to be modified.
We should gradually move to write eo::rng everywhere, and remove that using
directive to be almost full-proofed against possible name collision.
2001-01-08 10:07:27 +00:00
evomarc
c34e94b0d0 Removed a forgotten comment :-) 2001-01-05 14:42:48 +00:00
evomarc
b2636604a2 Updated Makefile.am to account for the change of names in selectors 2001-01-05 06:23:54 +00:00
evomarc
67ae5f5a6f eoHowMany is now included in utils dir 2001-01-05 05:44:35 +00:00
evomarc
a998ad0a41 Checking in the name changes in selection procedures.
This impacts on many files, creating new entries in src (the old ones are moved
to obsolete dir), modifying t-eoSymreg.cpp and t-eobin.cpp in test,
as well as gprop.cc and mastermind.cc in app dir (not to mention almost all
files in tutorial:-(
2001-01-05 05:42:08 +00:00
evomarc
4d77c9116f Sorry: removed eoSGATransform, that is in eoSGA.h ... 2001-01-04 05:06:09 +00:00
evomarc
2f13066625 Adding the selectin and replacement procedures 2001-01-04 05:00:40 +00:00
evomarc
3074101d1c Adding eoDetSelect, deterministic batch selection, that copies the individuals
one after the other. Should shuffle them in between (TODO).
2001-01-02 13:27:11 +00:00
evomarc
0447391f7c Modified the help message for the short name (added the missing =) 2000-12-26 10:28:27 +00:00
evomarc
d7693131a6 Moved eoSGATransform into a separate file and added the dynamic version
(where arguments can be passed by value or by reference).
Modified eo accordingly
2000-12-26 08:33:48 +00:00
evomarc
5d0a03fa4e Modified the include list after the big eoReplacement changes 2000-12-26 07:42:09 +00:00
evomarc
6acdcb6d9b THe big eoReplacement update:
The interface for eoReplacement is now eoPop<EOT>&, eoPop<EOT>&
(i.e. no const) and the result must be in the first argument in the end.

Hence it is possible to do SSGA and all intermediate replacmeent procedures

The classes derived from eoMergeReduce.h are now in a separate file
The SSGA-like replcaement procedures are in eoReduceMerge.h
A more general replacement can be found in eoSurviveAndDie.h
(it could be made a littel more general - still open for upgrades).

Also some accessors have been added to the eoPop (best and worse individuals)

And include file eo has been updated
2000-12-19 18:41:19 +00:00
evomarc
6a0010474a A new util class to handle the rate/integer argument to selectors/replacement 2000-12-19 18:09:10 +00:00
evomarc
c18f63f7e4 Added utils/eoGnuplot1DMonitor.h ni the list of includes 2000-12-15 16:57:37 +00:00
evomarc
0d9e6b2941 New base class eoUpdatable.h - for objects that need upates in eoCheckPoints
Also contains the class eoDynUpdater. They are eoUpdater, they receive an eoUpdatable
at construct time, and call their upate() method in their operator() method
2000-12-07 09:56:00 +00:00
evomarc
e0076740f8 Added virtual and const keywords all around - as I tried to use a derived
class for adaptive rates (see eoDynProportionalCombinedOp.h, at the moment
in the tutorial)
2000-12-05 05:22:55 +00:00
evomarc
4944881d7c - added the #define for eo_verbose (true) and eo_no_verbose (false)
- added the eoNormMutation, simple normal mutation for simple real variables
Modified Files:
 	src/eo src/es/eoRealOp.h tutorial/Lesson2/FirstRealEA.cpp
 	tutorial/Lesson3/SecondBitEA.cpp
2000-12-04 14:53:59 +00:00
evomarc
0e62de2d14 Added the lastCall construct: if the stopping condition becomes true in eoCheckPoint,
a method called lastCall is called for everything contained in that checkpoint
      (stats, updaters and monitors). This can be extremely useful
      - for stateSavers (see below)
      - for monitoring things like rates of success of operators, where what you
        are interested in is the final result only.
Added of course a virtual method lastCall that does nothing by default in classes
      eoBaseStat, eoBaseSortedStat, eoUpdater and eoMonitor
Added a boolean to control the save of the state in method eoCountedStateSaver::lastCall
      so you can ask that the state is saved at final population, whatever happens.
      I also added the corresponding constructor to take this into account.
2000-12-04 06:58:43 +00:00
evomarc
5c5142e59c Added a comment so Doxygen documents it 2000-12-04 05:55:59 +00:00
evomarc
00e21770ad Changed the (abstract) name for fitness from F to FitT so it matches
that of file eoFixedLength.h - it is far clearer in the documentation
diagrams this way.
2000-12-02 08:21:18 +00:00
gustavoromero
2abab21960 adding a new terminator and a monitor 2000-12-01 19:09:34 +00:00
gustavoromero
142c7d779c adding a lot of includes 2000-12-01 15:46:07 +00:00
gustavoromero
a9468f38c9 small fix for uniform 2000-11-30 17:11:53 +00:00
evomarc
9af974070a Corrected a small bug (!): the -C=value was not processed correctly
as somebody forgot one character when counting up to ... 3 :-)))
2000-11-30 06:38:15 +00:00
evomarc
109fc551ab Reversed the priority between command-line and parameter file 2000-11-30 06:20:20 +00:00
evomarc
2169a65f80 Moved eoCopyElite.h to obsolete dir - was redundant with eoMerge.h 2000-11-30 06:11:49 +00:00
evomarc
5c9bec34d6 Removed eoCopyElite.h, redundant with eoMerge.h 2000-11-30 06:04:09 +00:00
evomarc
29b8f1153c An include file was missing!!!
I've inserted it in teh file actually - but if we go on with gnuplot,
it will need to be taken out again, and used in all other monitors
we will write using gnuplot (e.g. eoGnuplotWithErrorbarsMonitor,
eoGnuplotHistogramMonitor, ...).
2000-11-29 17:20:16 +00:00
evomarc
a69a198770 Added eoProportionalCombinedOp.h 2000-11-28 17:42:53 +00:00
evomarc
52a9c830c8 I added this very simple instance of operator proportional selector
for the tutorial - it is consistent with all other xxxCombined constructs.
However, I am not sure that Occam's razor will not make it widely used...
2000-11-28 17:41:41 +00:00
evomarc
12c6bdf058 Added the class eoSGATransform: I break the one file / one class rule
a lot, but both are supposed to be used mainly in the tutorial, not
in real life :-)
2000-11-28 17:17:19 +00:00
evomarc
f5174e3a42 Added fstream in the include files - I had an error message at some point! 2000-11-28 15:40:39 +00:00
evomarc
e4b735b17f Added a comment to stdout upon termination - so we know why we stop in case
of multiple criteria
2000-11-28 15:35:09 +00:00
evomarc
5aa258fbcb Minor change of the default label 2000-11-28 15:31:38 +00:00
evomarc
afdcdf5d07 Added a few comments so Doxygen documents all classes 2000-11-28 08:20:01 +00:00
evomarc
622cbea0d5 This is the first attempt to use gnuplot through a fork to plot statistics.
At the moment it is only tested for Linux!
Use with care
2000-11-28 06:58:06 +00:00
evomarc
bee8388a1e Modified the contructor: the default value for the delimiter is now " "
and I added a boolean argument to indicate whether or not we want to
         overwrite an existing file with same name (default is overwrite).
Added the getFileName accessor.
2000-11-28 06:46:37 +00:00