Operation Point Selection

Operation Point Selection

class gem_controllers.stages.operation_point_selection.operation_point_selection.OperationPointSelection[source]

Base class for all operation point selections.

__call__(state, reference)[source]

Calculate the current operation point for a given torque reference value.

Parameters
  • state (np.ndarray) – The state of the environment.

  • reference (np.ndarray) – The reference of the state.

Returns

references for the current control stage

Return type

current_reference(np.ndarray)

_select_operating_point(state, reference)[source]

Interal calculation of the operation point

Parameters
  • state (np.ndarray) – The state of the environment.

  • reference (np.ndarray) – The reference of the state.

Returns

current refernce values

Return type

np.array

tune(env, env_id, current_safety_margin=0.2)[source]

Set the motor parameters, limits and indices of a operation point selection class.

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

  • env_id (str) – The corresponding environment-id to specify the concrete environment.

  • current_safety_margin (float) – Percentage of the current margin to the current limit.