Simple GA Library
Simple PSO Library
Simple Test Function Library
is a small and simple C++ implementation of
for use in optimizing a function. It is that way on purpose to make the
as easy to understand as possible.
SimGALib now includes SimPSOLib which is a small
and simple C++ implementation of PSO also for use in optimizing a
SimGALib also includes SimTstLib which encapsulates available test
random number generator functions. It is easily expandable.
Because we felt that a simple implementation of a GA in C++ should be
done so that anyone could understand it.
Q2: I want to
learn about Genetic Algorithms
After all this reading... Do you still want SimGALib? Here it is
Last updated: 4/28/14
Please note that some (optional) random number functions in SimTstLib
Numerical Recipes. Numerical Recipes (NR)
and is included here for academic completeness only.
If NR software is used by you in any commercial application then must
to obtain a license.
Numerical Recipes Software
P.O. Box 243,
Cambridge, MA 02238
|v.1.7.1 - 4/28/14
the accepting function prob in simulated annealing code to be between
0->1.0. Should not be necessary but if the difference in
energy were negative the prob. could have been > 1.0. Also,
fixed the calc of the energy delta to consider the restarts, otherwise
the Temp would not drop fast enough and the algorithm Temp would stay
w/ acceptance prob too high.
|v.1.7.0 - 4/14/14
an Organism( ) initialization problem when no params were passed, it
would default to 32 bits. Now it prints an error and does not
particle swarm optimization (in SimPSOLib), encapsulated test functions
into SimTstLib, added printing of function evaluations, added an
optional random number generator from NR in C.
simulated annealing, corrected variance calculation.
ranking, tournament and several new evaluation functions.
the code a bit more object oriented.