Commit graph

448 commits

Author SHA1 Message Date
jeggermo
9bda49ae05 Fixed a small problem with eoPointMutation. 2001-11-22 15:01:11 +00:00
evomarc
f41cd957c0 Changes due to MSVC 2001-11-17 07:22:59 +00:00
evomarc
8abb9242c2 Some error for MSVC that was not even a warning for g++ (but I'm sorry
to say that MSVC is right :-)
2001-11-16 15:06:29 +00:00
evomarc
25765640ae Changed the filenaming to comply with MacroHard 2001-11-16 15:05:41 +00:00
evomarc
49cc03546a Replaced the flat definitions of ncecessary classes (eoStatxxx and eoMonitor)
with the include of the corresponding .h file. as MSVC complained!
2001-11-16 14:01:52 +00:00
jeggermo
5597f3e353 small change in documentation 2001-11-15 22:11:31 +00:00
evomarc
bd53a220a5 A few more typename conditionally removed for MSVC++ 2001-11-12 15:21:40 +00:00
evomarc
4ad58c360e Some more small changes for MSVC++ compatibility 2001-11-12 14:17:58 +00:00
evomarc
d7c3d973c7 Small modifications here and there to be MSVC++ compatible
Mainly, time.h -> ctime
        definition of loop index out of loops when multiply used
        no typename in declaration using template typename
2001-11-10 09:02:17 +00:00
evomarc
a5e3abd9f6 Added the #pragma directive for MSVC++ in all .cpp 2001-11-10 06:59:02 +00:00
evomarc
818e6d8a14 Adding Distribution-based base abstract classes 2001-11-08 07:40:27 +00:00
evomarc
0816b742d9 Adding PBIL files - simple PBIL algorithm with simple additive update rule 2001-11-08 06:49:38 +00:00
evomarc
9b7556d81e I have changed all calls to use an eoParser rather than an eoParameterLoader
This is required if you want to use the method getParamWithLongName that allows
one to get a value of a parameter read somewhere else.
After changing 3 calls due to that, I decided to change ALL calls within
the make_xxx functions
2001-11-08 06:14:59 +00:00
evomarc
03045f2d58 Corrected a bug in the selector and replacement tournamemt parameter reading:
if you did not give the tournament sizes, the program either crashed or went
in some endless loop.
I also simplified the reading of those eoParamPram parameters!
2001-11-07 16:25:01 +00:00
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