Skip to content

remove deprecated debug option

Remove deprecated debug option _number_of_timesteps_to_optimize from the source code. The _number_of_timesteps_to_optimize option is a class variable, but changing class variables on-the-fly can result in unexpected behaviour.

Optimizing for a specific number of timesteps can also be achieved by overwriting the times() method. Furthermore, when solving an optimization problem multiple times for different numbers of timesteps, we can still introduce a class variable number_of_timesteps_to_optimize for our own class.

Merge request reports