Skip to content

Instantly share code, notes, and snippets.

@AAmedeo
Created April 5, 2022 13:31
Show Gist options
  • Save AAmedeo/0bf7814e8e00ff9cacda0aaef3825aee to your computer and use it in GitHub Desktop.
Save AAmedeo/0bf7814e8e00ff9cacda0aaef3825aee to your computer and use it in GitHub Desktop.
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