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
import mario | |
test_iot = mario.load_test('IOT') | |
test_sut = mario.load_test('SUT') | |
print(test_iot) | |
print(test_sut) | |
print(test_iot.get_index('Region')) | |
print(test_sut.get_index('Factor of production')) |
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='glpk') | |
model.to_csv(path="/Users/afa/Desktop/Hypatia/examples/Utopia2_planning_single_node_DN/result/", force_rewrite=True) |
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 | |
## defalt parameters - single node | |
model = Model(path="/Users/afa/Desktop/Hypatia/examples/Utopia2_planning_single_node_DN/sets/", mode="Planning") | |
model.create_data_excels("/Users/afa/Desktop/Hypatia/examples/Utopia2_planning_single_node_DN/parameters_test2/", force_rewrite=True) | |
model.read_input_data("/Users/afa/Desktop/Hypatia/examples/Utopia2_planning_single_node_DN/parameters_test2/") | |
model.run(solver='scipy') | |
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 |
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.create_data_excels("/Users/afa/Desktop/Hypatia/examples/Utopia2_planning_single_node_DN/parameters_test2/", force_rewrite=True) | |
model.read_input_data("/Users/afa/Desktop/Hypatia/examples/Utopia2_planning_single_node_DN/parameters_test2/") | |
model = Model(path="/Users/afa/Desktop/Hypatia/examples/Utopia1_operation_multi_node/sets/", mode="Operation") | |
model.create_data_excels("/Users/afa/Desktop/Hypatia/examples/Utopia1_operation_multi_node/parameters1/", force_rewrite=True) | |
model.read_input_data("/Users/afa/Desktop/Hypatia/examples/Utopia1_operation_multi_node/parameters1/") |