Commit graph

434 commits

Author SHA1 Message Date
maartenkeijzer
ddb9e026cf Fixed call to inverse_stochastic inside eoDetTournament 2001-11-07 10:57:53 +00:00
evomarc
58f5fd2f61 Added method
eoParam* getParamWithLongName(std::string _name);
so now you can get a parameter in another place than where it was defined
just by giving its name
2001-11-05 16:38:52 +00:00
evomarc
50fe1cb529 Small error in header 2001-11-05 08:24:59 +00:00
jeggermo
2d12525bc5 the name of the eoGpDepthInitializer class (initializer for
parse_tree's has been changed to

eoParseTreeDepthInit but backward compatibility is maintained by
using a #define statement:

#define eoGpDepthInitializer eoParseTreeDepthInit

The initializer for strongly typed GP has been changed to
eoStParseTreeDepthInit

the gpsymreg application has been changed to use the new name
2001-11-03 22:10:11 +00:00
jeggermo
4584fda53d Some changes for using EO with libstdc++V3 and gcc-3.01 2001-10-25 10:39:55 +00:00
evomarc
af05dfacb9 Added MAXFLOAT and MINFLOAT as it seems that Cygwin needs that ??? 2001-10-18 05:30:45 +00:00
evomarc
f7377b0fcf All files on one line in Makefile.am (for Windows) 2001-10-18 04:37:14 +00:00
evomarc
f2c21bdc0b Removed trailing text after #endif - causes warning on many compilers 2001-10-08 09:14:15 +00:00
jeggermo
7e885e8f8c ramped half and half initialization procedure for eoParseTree populations
added.
2001-10-05 12:39:30 +00:00
evomarc
30616fca42 Forgot to double also the parameter to initialize in the Ctor! 2001-10-05 03:56:21 +00:00
evomarc
f4efc65994 Modified the reseed method in RNG class so two different seeds give different
sequences, after Jeroen's remark (jeggermo@liacs.nl)
2001-10-05 03:51:15 +00:00
evomarc
653e64df09 Commented out the oeprator() default function in base class: I find it more secure
to be warned at compile time that one function is still pure virtual
than to look for the error after a run-time-error that gives no clue
2001-10-05 03:30:12 +00:00
evomarc
d0d14c3ff8 Removed trailing string after #endif - it generates a lot of useless warning
on some versions of g++
2001-09-08 05:59:17 +00:00
evomarc
37a138c81b Added include math.h 2001-09-08 05:41:19 +00:00
evomarc
f69b785b39 Modified the className() method so that the Atom underlying operator is listed 2001-09-04 06:51:59 +00:00
evomarc
5fb8958b28 Included apply.h for consistency (though in most cases it was included from eo file 2001-09-04 06:50:42 +00:00
evomarc
861f11e153 Added a class that turns an eoInit<EOT> into a generator of EOT
Also added a Ctor of variable length objects that take an eoInit.
Some day we might want to clean all that stuff ... unless we leave
the choice to the user (but then the documentation shoudl be as clear
as glass, which it is not at the moment!)
2001-09-04 06:48:15 +00:00
evomarc
c352b19799 In case you are trying to assign a value to a vector of different size,
previous versions raised an exception.
Now a simple warning is written to stderr - as it might be something
you need to do.
2001-09-04 06:45:14 +00:00
evomarc
e79edcffe7 Added make_help in checkpointing, included stdexcept in eoParam. Comments
updates ...
2001-09-04 06:43:19 +00:00
evomarc
62dfe13c3a Spotted and commented (but NOT corrected :-( a bug in case the ResDir
exists and is empty
2001-09-04 06:41:34 +00:00
evomarc
4f642f848e Corrected wrong arguments for the 2D Ctor 2001-09-04 06:40:28 +00:00
evomarc
0f9f1cc3ea Comments update 2001-09-04 06:37:25 +00:00
evomarc
bb658f550c Changed the wrong #ifdef in make_algo_scalar (+ minor comments elsewhere) 2001-09-04 06:35:58 +00:00
jeggermo
21e42be6d3 small documentation change for eoParseTree.h.
added a depth initializer for strongly typed genetic programming
added subtree xover for strongly typed genetic programming
added branch mutation for strongly typed genetic programming
added point mutation for strongly typed genetic programming
added hoist mutation for strongly typed genetic programming
2001-07-17 08:58:52 +00:00
evomarc
6c969bfbce Suppressed the gene mutations, as they are now in eoFlOrMonOp.h 2001-07-11 06:26:11 +00:00
evomarc
7ac9996675 Oups! 2001-07-04 04:59:02 +00:00
evomarc
963683996d Adding eoPopEvalFunc, that handles evaluation globally: it receives
two populations, parents and offspring, and does whatever necessary.
The subclass eoPopLoopEval does the simple loop on the offspring.

eoEasyEA was subsequently modified to handle an eoPopEval passed in Ctor,
but also to encapsulate an eoEvalFunc into an eoPopLoopEval tranparently.
2001-07-04 04:44:30 +00:00
evomarc
88061395f1 Added the eoPopEvalFunc class: gets the full parents + offspring populations
in order to evaluate them.
Modified eoEaseyEA accordingly - you can either pass an eoEvalFunc, as
before (it is then encapsulated into an eoPopLoopEval that does the good
old loop on the offspring - or directly pass a full eoPopEvalFunc

Small modification also in make_op_es -> keyword "none" is now recognized
for one of the crossover of either object variables or stdev's
2001-07-03 12:56:44 +00:00
jeggermo
a611939e68 Changed the directory structure for gp
now: eoParseTree <-- the eoParseTree class
     eoParseTreeDepthInit <-- the eoParseTree depth initializer (eoGpDepthInitializer)
     eoParseTreeOp <-- the operators (xover and mutation)

base documentation written for:
* eoParseTree
* eoGpDepthInitializer
* eoSubtreeXOver
* eoBranchMutation
* eoPointMutation
* eoExpansionMutation
* eoCollapseSubtreeMutation
* eoHoistMutation

I also created a group ParseTree which contains all classes related to eoParseTree

eoGpMutate.h has been removed (merged with eoParseTree operators into eoParseTreeOp
2001-07-02 13:31:04 +00:00
jeggermo
402e34c238 The constructor for the eoGpDepthInitializer has been extended with a
sort of the initializor vector containing all possible nodes. This sort
assures that the terminals are in the front of vector. Untill now this
was assumed but not checked or enforced.
2001-07-02 11:38:27 +00:00
jeggermo
af726e9d9e eoSubtreeXOver fixed 2001-07-02 08:28:40 +00:00
evomarc
967670e2c7 Added random selection 2001-06-30 05:59:26 +00:00
evomarc
48a784d122 Corrected a wrong comment 2001-06-30 05:57:10 +00:00
maartenkeijzer
f674fbeb14 oops, thanks jeroen 2001-06-29 18:06:10 +00:00
jeggermo
3486dfafd6 eoGpMutate.h added containing 4 new mutation operators for eoParseTree class 2001-06-28 14:18:47 +00:00
jeggermo
164e36b184 Additional mutation operators for eoParseTree
* Point Mutation
* Expansion Mutation
* Collapse Subtree Mutation
* Hoist
2001-06-28 13:55:14 +00:00
maartenkeijzer
49434ecc03 Added a check for an empty initializor 2001-06-11 12:37:21 +00:00
evomarc
b72a85fa1b ? 2001-05-21 04:16:26 +00:00
evomarc
91342e7080 Modifs in es (crossover added in make_op_es).
Added a dummy selector in eoReandomSelect that does work even with invalid EOs
2001-05-21 04:14:36 +00:00
evomarc
8b177dd6cd Added the crossover in make_op_es (parameters were read, but that's all! 2001-05-21 04:13:10 +00:00
evomarc
9631c9eb11 Changed name of eoEsLocalXover to eoEsStandardXover and made it an eoBinOp
Removed obsolete eoEsStdevXOver.h (see eoEsStandardXover.h above)
2001-05-19 06:15:01 +00:00
evomarc
8e5e9d14cf Coreected a cut-and-paste bug :-( 2001-05-18 17:46:33 +00:00
evomarc
0286faed1b Removed remaining debugging comment 2001-05-18 03:59:22 +00:00
jmerelo
17dc4f9d10 Changed MGE to the contrib dir. No need to change the prefix, I guess 2001-05-17 10:08:25 +00:00
jmerelo
34cb430bd7 Added Royal Road, MGE now work with it, small modifications to eoPopStat 2001-05-11 10:44:01 +00:00
jmerelo
88f281b606 Added 'Viral' operators with test. Implements the Mobile Genetic Elements Technique 2001-05-10 12:16:00 +00:00
evomarc
b7915a4bbe CHanged CXXFLAGS to nothing - so lib files remain of manageable size! 2001-05-08 04:44:30 +00:00
evomarc
09388c8ed5 Bing change in eoRealBounds: it is now deriving from eoPersistent.
More important, the eoRealVectorBounds, vectorized version (a vector<eoRealBounds *>
has also become an eoPersistent object and now derives from an eoRealBaseVectorBounds
class.
A useful consequence (and actual motivatino) was to be able to have soem
eoValueParam<eoRealVectorBounds> with all possibilities for input
(see doc for Lesson4 in the tutorial for the syntax).
2001-05-08 04:41:51 +00:00
evomarc
42cb1981d5 In eoParser::readFrom, added a test to avoid reading non-parser sections
as these generally contain many -xxx that generate a reading error
when xxx is not a keyword.
This allows to use State-savec files directly as parameter files
2001-05-08 03:49:35 +00:00
evomarc
0aa6a235ef Replaced stupid eoRateParam by eoValueParam<eoHowMnay>
Had to transform eoHowMany into an eoPersistent ...
2001-05-07 07:13:36 +00:00