A very simple Genetic Algorithm implementation for matlab, easy to use, easy to modify runs fast.
A very simple Genetic Algorithm implementation for matlab, easy to use, easy to modify and runs fast. Even has some visualization too.
Run the FunctionOptimization script.
Replace your own function into EvaluateIndividual.m script. Note that this genetic algorithm tries to maximise the output so invert your function according to your needs. Right now it tries to locate the peak of a double variable function. It can be adjusted to optimize for more than two variable functions.
They are simply there to test the individual methods/steps of the genetic algorithm. Can be used for debugging.
Please dont remove my name from the codes.