mpcrl.core.schedulers.Chain#

class mpcrl.core.schedulers.Chain(schedulers)[source]#

Bases: Scheduler[ScType]

Chains multiple schedulers together.

Parameters:
schedulersiterable of schedulers or of (scheduler, int)

An iterable of schedulers to be chained together. If an iterable of tuples is passed instead, the first element is expected to be an instance of scheduler, and the second one an integer indicating the number of steps to run that scheduler for. This is useful in case the scheduler has no fixed number of steps, such as ExponentialScheduler.

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