mpcrl.core.schedulers.ExponentialScheduler#

class mpcrl.core.schedulers.ExponentialScheduler(init_value, factor)[source]#

Bases: Scheduler[ScType]

Exponentially decay scheduler.

It exponentially decays the value of the scheduler by factor every step, i.e., mathematically, at the \(k\)-th step, the value \(v_k\) is

\[v_k = v_0 f^k,\]

where \(v_0\) is the initial value and \(f\) is the factor.

Parameters:
init_valuesupports-algebraic-operations

Initial value that will be updated by this scheduler.

factorsupports-algebraic-operations

The exponential factor to decay the initial value with.

Methods

step()

Updates the value of the scheduler by one step.

step()[source]#

Updates the value of the scheduler by one step.

Raises:
StopIteration

Raises if the final iteration of the scheduler (if any) has been reached and step was called again.

Return type:

None