3.6.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, callbacks=None)

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