-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
72 changed files
with
10,908 additions
and
69 deletions.
There are no files selected for viewing
Binary file added
BIN
+44.3 KB
docs/build/doctrees/autoapi/gym_power_res/envs/DS_pyomo/index.doctree
Binary file not shown.
Binary file added
BIN
+100 KB
.../build/doctrees/autoapi/gym_power_res/envs/GYM_ENV_restoration_distribution/index.doctree
Binary file not shown.
Binary file added
BIN
+20.2 KB
docs/build/doctrees/autoapi/gym_power_res/envs/data_test_case/index.doctree
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+15.5 KB
docs/build/doctrees/autoapi/gym_power_res/envs/util_build_OPT_results/index.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+24.1 KB
docs/build/doctrees/autoapi/gym_power_res/sorces/score_logger/index.doctree
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+63.9 KB
docs/build/doctrees/autoapi/project_dis_restoration/NN_model/index.doctree
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+49.8 KB
...ld/doctrees/autoapi/project_dis_restoration/train_IL_BC_hybrid_feature_flow/index.doctree
Binary file not shown.
Binary file added
BIN
+49.8 KB
...ld/doctrees/autoapi/project_dis_restoration/train_IL_BC_hybrid_feature_line/index.doctree
Binary file not shown.
Binary file added
BIN
+49.8 KB
...ld/doctrees/autoapi/project_dis_restoration/train_IL_BC_hybrid_feature_load/index.doctree
Binary file not shown.
Binary file added
BIN
+50.8 KB
docs/build/doctrees/autoapi/project_dis_restoration/train_IL_BC_tieline/index.doctree
Binary file not shown.
Binary file added
BIN
+52.5 KB
docs/build/doctrees/autoapi/project_dis_restoration/train_IL_BC_tieline_119/index.doctree
Binary file not shown.
Binary file added
BIN
+61 KB
...trees/autoapi/project_dis_restoration/train_RL_tieline__A2C_stablebaselines/index.doctree
Binary file not shown.
Binary file added
BIN
+61 KB
...trees/autoapi/project_dis_restoration/train_RL_tieline__DQN_stablebaselines/index.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: f87a1923c270be88360dd01435fe6faf | ||
config: c6fe713e7023aba90a76f429f2752a9a | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
129 changes: 129 additions & 0 deletions
129
docs/build/html/_sources/autoapi/gym_power_res/envs/DS_pyomo/index.rst.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
:mod:`gym_power_res.envs.DS_pyomo` | ||
================================== | ||
|
||
.. py:module:: gym_power_res.envs.DS_pyomo | ||
Module Contents | ||
--------------- | ||
|
||
Classes | ||
~~~~~~~ | ||
|
||
.. autoapisummary:: | ||
|
||
gym_power_res.envs.DS_pyomo.SolutionDict | ||
gym_power_res.envs.DS_pyomo.OutageManage | ||
|
||
|
||
|
||
|
||
Attributes | ||
~~~~~~~~~~ | ||
|
||
.. autoapisummary:: | ||
|
||
gym_power_res.envs.DS_pyomo.ppc | ||
|
||
|
||
.. class:: SolutionDict | ||
|
||
|
||
Bases: :py:obj:`collections.OrderedDict` | ||
|
||
Solution dictionary is an ordered dictionary that stores the optimization results | ||
Solution dictionary struture: D[name key]=time series data | ||
|
||
.. method:: copy_data(self, DictData) | ||
|
||
|
||
.. method:: plot_2d(self, x_str='Time', y_str='Value', title_str='Results', figsize=(15, 7), legendlist=None, show=True, save=False, folder=None) | ||
|
||
step plot | ||
|
||
|
||
.. method:: plot_step_2d(self, x_str='Time', y_str='Value', title_str='Results', figsize=(15, 7), legendlist=None, show=True, save=False, folder=None) | ||
|
||
step plot | ||
|
||
|
||
.. method:: plot_bin_2d(self, x_str='Time', y_str='Value', title_str='Results', figsize=(15, 7), show=True, save=False, folder=None) | ||
|
||
step plot | ||
|
||
|
||
|
||
.. class:: OutageManage | ||
|
||
Distribution system restoration class | ||
|
||
.. attribute:: BigM | ||
:annotation: = 100 | ||
|
||
|
||
|
||
.. attribute:: FicFlowBigM | ||
:annotation: = 100 | ||
|
||
|
||
|
||
.. attribute:: epsilon | ||
:annotation: = 0.1 | ||
|
||
|
||
|
||
.. attribute:: BasePower | ||
:annotation: = 1000 | ||
|
||
|
||
|
||
.. method:: data_preparation(self, ppc, line_damaged, VS=1.05, dV=0.05) | ||
|
||
read data of distribution network and vehicle routing problem | ||
Data is in the format of dictionary | ||
|
||
|
||
.. method:: solve_network_restoration_varcon(self, Total_Step, Line_Initial, VarCon_Initial, Load_Initial) | ||
|
||
solve a full-step restoration problem with reactive power dispatch | ||
:param Total_Step: total step of the problem | ||
:param Line_Initial: initial line status | ||
:return: restoration plan | ||
|
||
|
||
.. method:: solve_network_restoration(self, Total_Step, Line_Initial, Load_Initial) | ||
|
||
solve a full-step restoration problem | ||
:param Total_Step: total step of the problem | ||
:param Line_Initial: initial line status | ||
:return: restoration plan | ||
|
||
|
||
.. method:: solve_load_pickup(self, line_status, load_status=None) | ||
|
||
Given fixed line status, obtain optimal load status | ||
-- line status should be a dict with "key" as line name and "int or array" describing status over time interval | ||
|
||
|
||
.. method:: solve_load_pickup_varcon(self, line_status, varcon, load_status=None) | ||
|
||
Given fixed line status and reactive power dispatch, obtain optimal load status | ||
-- line status should be a dict with "key" as line name and "int or array" describing status over time interval | ||
|
||
|
||
.. method:: get_solution_2d(self, VariableName, NameKey, ListIndex, SolDict=None) | ||
|
||
get solution and store into a one name key structured dictionary | ||
:param VariableName: variable name in string format | ||
:param NameKey: desired key set in list or range format that you would like to retrieve | ||
:param ListIndex: desired index range in list format that you would like to retrieve | ||
:param SolDict: dictionary object with plot methods | ||
:return: SolDict | ||
|
||
|
||
|
||
.. data:: ppc | ||
|
||
|
||
|
||
|
Oops, something went wrong.