sinergym.utils.common.setpoints_transform

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

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

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

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

  • setpoints_space (list) – Sinergym simulation action space

Returns:

Action transformed into simulation action space.

Return type:

tuple