4.8.5. Simple Grid Optimizer

class SimpleGridOptimizer(nsteps=10)

A simple example optimizer, that just evaluates the fitness function on a regular grid in parameter space.

__init__(nsteps=10)

Create a new optimizer for a regular grid of nsteps points in every active parameter’s range.

minimize(function, x0, bounds, workers=1)

Evaluate loss function for all grid points and return an instance of MinimizeResult for the best grid point.

reset()

This method is called when the Optimization() class is initialized and should reset a previously used optimizer instance.