SimChannelDssEnvUpdated module¶
Created on Fri July 1 09:17:05 2022
@author: abhijeetsahu
This environment would merge both Simpy and OpenDSS environment.. Current implementation is a dummy merge..Still need to update
- class SimChannelDssEnvUpdated.CyberPhysicalEnvDummy(cenv, penv, compzones)¶
Bases:
object
- reset()¶
- step(actions)¶
- class SimChannelDssEnvUpdated.CyberPhysicalEnvMT(cenv, penv, comp_zones)¶
Bases:
gym.core.Env
- reset()¶
Resets the environment to an initial state and returns an initial observation.
Note that this function should not reset the environment’s random number generator(s); random variables in the environment’s state should be sampled independently between multiple calls to reset(). In other words, each call of reset() should yield an environment suitable for a new episode, independent of previous episodes.
- Returns:
observation (object): the initial observation.
- step(actions)¶
Run one timestep of the environment’s dynamics. When end of episode is reached, you are responsible for calling reset() to reset this environment’s state.
Accepts an action and returns a tuple (observation, reward, done, info).
- Args:
action (object): an action provided by the agent
- Returns:
observation (object): agent’s observation of the current environment reward (float) : amount of reward returned after previous action done (bool): whether the episode has ended, in which case further step() calls will return undefined results info (dict): contains auxiliary diagnostic information (helpful for debugging, and sometimes learning)
- SimChannelDssEnvUpdated.CyberPhysicalMapping()¶