-
Notifications
You must be signed in to change notification settings - Fork 37
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
1 parent
ecd798d
commit e56e316
Showing
1 changed file
with
16 additions
and
13 deletions.
There are no files selected for viewing
29 changes: 16 additions & 13 deletions
29
tests/integration_tests/mechanics/optimizedDispatch2Hybrid/ReadMe.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 |
---|---|---|
@@ -1,40 +1,43 @@ | ||
This test demonstrated converting the HERON optimized components' variables (optimized dispatch) to a text file that is compatible with HYBRID via two steps: | ||
This test demonstrates converting the HERON optimized components' variables (optimized dispatch) to a text file that is compatible with HYBRID via two steps: | ||
|
||
|
||
|
||
Step #0: Producing the HERON optimized dispatches | ||
In this step, the HERON optimized dispatches are creates similar to creating the dispatches CSV file in the folder: /HERON/tests/integration_tests/mechanics/debug_mode. You can create the dispactes CSV file running the commands such as: | ||
In this step, the HERON optimized dispatches are created like creating the dispatches CSV file in the folder: /HERON/tests/integration_tests/mechanics/debug_mode. You can create the dispatches CSV file running the commands such as: | ||
~/projects/HERON/heron heron_input.xml | ||
~/projects/raven/raven_framework outer.xml | ||
|
||
|
||
|
||
Step #1: "create_user_input.py" | ||
This script is run to create a user-input file for the HYBRID user. | ||
It is an initial step that the HYBRID user needs to create new names, if necessary, to: 1- The optimized dispatch outputs, 2- The components' capacities. | ||
This script extracts the optimized dispatch outputs from the dispatch prints csv file and the list of components (and their capacities) from the HERON input XML file. | ||
It is an initial step that the HYBRID user needs to rename, if necessary, the optimized dispatch outputs and the components' capacities. | ||
This script extracts the optimized dispatch outputs from the dispatch prints CSV file and the list of components' capacities from the HERON input XML file. | ||
|
||
It takes the following arguments: | ||
This script takes the following arguments: | ||
1- The HERON input XML file | ||
2- The optimized dispatch outputs csv file. | ||
For example, To run the script, use the following command: | ||
2- The optimized dispatch outputs CSV file. | ||
For example, to run the script, use the following command: | ||
python create_user_input.py heron_input.xml Debug_Run_o/dispatch_print.csv | ||
The output will be a user input file: "user_input.txt". | ||
The user needs to review the user input file and change/review the HYRBID variables and capacities there. | ||
The output will be a user input file: "user_input.txt" | ||
The user needs to review the user input file and change/review the HYBRID variables and capacities there. | ||
|
||
Next, the user can run the "export2Hybrid.py" which loads the dispatch outpus from HERON to a new file that HYBRID can use. The variables names in the autoloaded HYBRID file are borrowd from "user_input.txt" | ||
Next, the user can run the "export2Hybrid.py" which loads the dispatch outputs from HERON to a new file that HYBRID can use. The variables' names in the autoloaded HYBRID file are borrowed from "user_input.txt" | ||
|
||
|
||
|
||
Step #2: "export2Hybrid.py" | ||
A script to convert the HERON optimized components' variables (optimized dispatch) to a text file that is compatible with HYBRID. | ||
A script to convert the HERON optimized components' variables (optimized dispatch) to a text file compatible with HYBRID. | ||
|
||
The user-input file, "user_input.txt", must be in the same folder. | ||
The user-input file "user_input.txt" must be in the same folder. | ||
The user must review/modify the "user_input.txt" before running this script. | ||
|
||
This script is run with the following arguments: | ||
1- The HERON input XML file. | ||
2- The optimized dispatch outputs CSV file. | ||
For example, to run this script, use the following command: | ||
python export2Hybrid.py heron_input.xml Debug_Run_o/dispatch_print.csv | ||
The output will be a text file compatible with HYBRID: "hybrid_input.txt." | ||
The output will be a text file compatible with HYBRID: "hybrid_compatible_dispatch.txt | ||
|
||
|
||
For more details, the HERON User Manual, Sec. 7.2: Auto-loading the optimized dispatches from HERON to HYBRID |