Shunt DC Motor Operation Point Selection

class gem_controllers.stages.operation_point_selection.shunt_dc_ops.ShuntDcOperationPointSelection[source]

This class computes the current operation point of a ShuntDc Motor for a given torque reference value.

_select_operating_point(state, reference)[source]

Calculate the current refrence values.

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

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

Returns

current reference values

Return type

np.array

property cross_inductance

Cross inductance of the Shunt Dc motor

property i_a_idx

Index of the i_a current

property i_a_limit

Limit of the i_a current

property i_e_idx

Index of the i_e current

property i_e_limit

Limit of the i_e current

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

Tune the operation point selcetion stage.

Parameters
  • env (gym_electric_motor.ElectricMotorEnvironment) – The environment to be controlled.

  • env_id (str) – The id of the environment.

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