mpcrl.optim.base_optimizer.BaseOptimizer#
- class mpcrl.optim.base_optimizer.BaseOptimizer(max_percentage_update=inf)[source]#
Bases:
objectBase class for optimization algorithms.
This class contains useful methods for, e.g., initializing the optimizer, retrieving bounds on the learnable parameters, etc.
- Parameters:
- max_percentage_updatefloat, optional
A positive float that specifies the maximum percentage change the learnable parameters can experience in each update. For example,
max_percentage_update=0.5means that the parameters can be updated by up to 50% of their current value. By default, it is set to+inf.
Methods
set_learnable_parameters(pars)Makes the optimization class aware of the dictionary of the learnable parameters whose values are to be updated.