simrunmodular_reduced_model_inferencesolver_Solver

_Solver

class simrun.modular_reduced_model_inference.solver._Solver(name)

Solver base class

Each child must implement the _setup_optimizer() method.

Parameters:

name (str) – name of the solver

Attributes:

name

name of the solver

Type:

str

optimize

The solver-specific optimization function.

Type:

callable

strategy

The strategy object. This is set during setup().

Type:

_Strategy

Methods:

setup(strategy)

Setup the solver for a given strategy and optimizer.

_setup_optimizer()

Set up the optimization strategy.

optimize_all_splits(client, workers)

Optimize the cost function for all splits of the strategy.

optimize_one_split(client, workers, index)

Optimize the cost function for a single split.