Reset the underlying microgrid. If already reset (e.g. current step is initial step), do nothing. Returns ------- obs : dict[str, list[float]] Observations from resetting the modules as well as the flushed balance log.
(self)
| 49 | return priority_list |
| 50 | |
| 51 | def reset(self): |
| 52 | """ |
| 53 | Reset the underlying microgrid. |
| 54 | |
| 55 | If already reset (e.g. current step is initial step), do nothing. |
| 56 | |
| 57 | Returns |
| 58 | ------- |
| 59 | obs : dict[str, list[float]] |
| 60 | Observations from resetting the modules as well as the flushed balance log. |
| 61 | |
| 62 | """ |
| 63 | if self.microgrid.current_step != self.microgrid.initial_step: |
| 64 | self.microgrid.reset() |
| 65 | |
| 66 | def run(self, max_steps=None, verbose=False): |
| 67 | """ |