Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tredwar dev #18

Merged
merged 9 commits into from
Jul 5, 2024
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,8 @@ cython_debug/
*.json

# ignore .DS_Store
*.DS_Store
*.DS_Store

# ignore "data"
*.csv
*.xlsx
38 changes: 24 additions & 14 deletions gtep/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,29 @@
mod_object.results = opt.solve(mod_object.model)


save_numerical_results = False
if save_numerical_results:

sol_object = ExpansionPlanningSolution()

sol_object.load_from_model(mod_object)
sol_object.dump_json()
load_numerical_results = False
if load_numerical_results:
# sol_object.read_json("./gtep_solution.json")
sol_object.read_json("./bigger_longer_wigglier_gtep_solution.json")
plot_results = False
if plot_results:
sol_object.plot_levels(save_dir="./plots/")
sol_object.import_data_object(data_object)

# sol_object.read_json("./gtep_lots_of_buses_solution.json") # "./gtep/data/WECC_USAEE"
sol_object.read_json("./gtep_11bus_solution.json") # "./gtep/data/WECC_Reduced_USAEE"
# sol_object.read_json("./gtep_solution.json")
# sol_object.read_json("./updated_gtep_solution_test.json")
# sol_object.read_json("./gtep_wiggles.json")
sol_object.plot_levels(save_dir="./plots/")

# save_numerical_results = False
# if save_numerical_results:

# sol_object = ExpansionPlanningSolution()

# sol_object.load_from_model(mod_object)
# sol_object.dump_json()
# load_numerical_results = False
# if load_numerical_results:
# # sol_object.read_json("./gtep_solution.json")
# sol_object.read_json("./bigger_longer_wigglier_gtep_solution.json")
# plot_results = False
# if plot_results:
# sol_object.plot_levels(save_dir="./plots/")


pass
Loading
Loading