Created
April 5, 2022 13:31
-
-
Save AAmedeo/0bf7814e8e00ff9cacda0aaef3825aee to your computer and use it in GitHub Desktop.
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
from hypatia import Model | |
from hypatia import Plotter | |
model = Model(path="/Users/afa/Desktop/Hypatia/examples/Utopia2_planning_single_node_DN/sets/", mode="Planning") | |
model.read_input_data("/Users/afa/Desktop/Hypatia/examples/Utopia2_planning_single_node_DN/parameters/") | |
model.run(solver='scipy') | |
plotter = Plotter( | |
model, | |
"/Users/afa/Desktop/Hypatia/examples/Utopia2_planning_single_node_DN/config.xlsx", | |
True | |
) | |
plotter.plot_hourly_prod_by_tech( | |
"/Users/afa/Desktop/Hypatia/examples/Utopia2_planning_single_node_DN/plot.html", | |
"Power Generation", | |
2021 | |
) | |
model = Model(path="/Users/afa/Desktop/Hypatia/examples/Utopia1_operation_multi_node/sets/", mode="Operation") | |
model.read_input_data("/Users/afa/Desktop/Hypatia/examples/Utopia1_operation_multi_node/parameters/") | |
model.run(solver='scipy') | |
plotter = Plotter( | |
model, | |
"/Users/afa/Desktop/Hypatia/examples/Utopia1_operation_multi_node/config.xlsx", | |
True | |
) | |
plotter.plot_hourly_prod_by_tech( | |
"/Users/afa/Desktop/Hypatia/examples/Utopia1_operation_multi_node/plot.html", | |
"Power Generation", | |
2021 | |
) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment