PRS

class gob.optimizers.PRS.PRS(bounds, n_eval=1000, verbose=False)

Bases: Optimizer

Interface for the PRS optimizer.

Parameters:
  • bounds (ndarray) – The bounds of the search space.

  • n_eval (int) – The maximum number of function evaluations.

  • verbose (bool) – Whether to print information about the optimization process.

minimize(f)

Minimize a function using the optimizer.

Parameters:

f (Function) – The objective function.

Returns:

The minimum point and the minimum value.

Return type:

pair

set_stop_criterion(stop_criterion)

Set a stop criterion for the optimizer.

Parameters:

stop_criterion (float) – The stop criterion.