energym.utils.common.setpoints_transform

energym.utils.common.setpoints_transform(action, action_space: gym.spaces.box.Box, setpoints_space)

Given an action inner gym action_space, this will be converted into an action inner setpoints_space (Energym Simulation).

Parameters
  • action (list) – Action of a step in gym simulation.

  • action_space (gym.spaces.Box) – Gym action space

  • setpoints_space (list) – Energym simulation action space

Returns

Action transformed into simulation action space.

Return type

tuple