KTH-dESA / OSeMOSYS_step

Scripts to conduct myopic runs with OSeMOSYS models
MIT License
0 stars 2 forks source link

Adds logic for gurobi solution check #66

Closed trevorb1 closed 1 year ago

trevorb1 commented 1 year ago

This PR adds logic to check for a solution file written from Gurobi is optimal. If a solution is infeasible, gurobi will write an empty .sol file in addition to the .ilp file.

trevorb1 commented 1 year ago

Hi @HauHe! Here is a PR to check for the issue described in #65. I don't have Gurobi installed on my computer, so please check if this solves your issue :)

HauHe commented 1 year ago

Great! Thanks so much @trevorb1! I ran it and it seems to work fine. So I merge it.