Optimizee for simple functions¶
The fitness function to optimize is the value of the function.
FunctionGeneratorOptimizee(traj, fg_instance, seed)¶
Implements a simple function optimizee. Functions are generated using the FunctionGenerator. NOTE: Make sure the optimizee_fitness_weights is set to (-1,) to minimize the value of the function
- traj – The trajectory used to conduct the optimization.
- fg_instance – Instance of the FunctionGenerator class.
- seed – The random seed used for generation of optimizee individuals. It uses a copy of
the fg_instance and overrides the random generator using one seeded by seed. Note that this
random generator is also the one used by the
FunctionGeneratorOptimizeeitself. NOTE that this seed is converted to an np.uint32.
Creates a random value of parameter within given bounds
Bounds the individual within the required bounds via coordinate clipping