Skip to content

Commit

Permalink
Update patch of PyOptInterface for Highs
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhanwei-Liu committed Jun 30, 2024
1 parent d355213 commit be17451
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"fixed_head": true
},
"solver_parameters": {
"solver": "gurobi"
"solver": "highs",
"solver_path": ""
},
"data_parameters":{
"historical_capacity": {
Expand Down
3 changes: 2 additions & 1 deletion prep-shot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ dependencies:
- xarray==0.20.2
- pyomo==6.5.0
- gurobipy==11.0.2
- PyOptInterface==0.2.4
- PyOptInterface==0.2.5
- highsbox
1 change: 0 additions & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ def run_model(parameters, output_filename, args):
model = create_model(parameters)
output_filename = update_output_filename(output_filename, args)
solved = solve_model(model, parameters)
exit()
if solved:
ds = extract_result(model, isinflow=parameters['isinflow'])
ds.to_netcdf(f'{output_filename}.nc')
Expand Down

0 comments on commit be17451

Please sign in to comment.