Reference Plotter

class gem_controllers.reference_plotter.ReferencePlotter[source]

Bases: object

This class adds the reference values of the subordinate stages to the stage plots of the GEM environment.

add_maximum_reference(state, value)[source]
tune(env, referenced_states, plot_references, maximum_reference, **_)[source]

Tune the reference plotter.

Parameters:
  • env (ElectricMotorEnvironment) – The GEM-Environment that the controller shall be created for.

  • referenced_states (np.ndarray) – Array of all referenced states.

  • plot_references (bool) – Flag, if the references of the subordinate stages should be plotted.

  • maximum_reference (dict) – Dict containing all limited reference currents.

update_plots(references)[source]

Update the state plots of the GEM environment.

Parameters:

references (np.ndarray) – Array of all reference values of the subordinate stages.