Commit 10dd2ff
fix: make CBA workflow release Gurobi license after each rolling horizon optimization and fail if optimization is infeasible when using HiGHS (#756)
* feat: release license environment after each rolling horizon
* fix: only discard gurobi license after printing infeasibility, if infeasible
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* feat: remove garbage collection and `_env.dispose()`
* docs: edit docstrings
* chore: edit comments
* docs: add #756 to doc/release_notes
* feat: remove final disposal of gurobi model (unneeded)
* feat: raise error if status is not ok, not only for infeasible in condition
* docs: edit release note description
* refac: rework `dispose_gurobi_model()` to solver-agnostic `dispose_model()`
Co-authored-by: Thomas Gilon <thomas.gilon@openenergytransition.org>
* refac: use `dispose_model()` instead of `dispose_gurobi_model()`
Co-authored-by: Thomas Gilon <thomas.gilon@openenergytransition.org>
* refac: dispose of previous Model object if `fallback_solver` is used
Co-authored-by: Thomas Gilon <thomas.gilon@openenergytransition.org>
* refac: remove unneeded `dispose`
Co-authored-by: Thomas Gilon <thomas.gilon@openenergytransition.org>
* chore: change wording in commented code
Co-authored-by: Thomas Gilon <thomas.gilon@openenergytransition.org>
* docs: edit PR description in doc/release_notes.rst
Co-authored-by: Thomas Gilon <thomas.gilon@openenergytransition.org>
* docs: add #756 to doc/release_notes
* fix: remove extra `if fallback_solver`
* docs: edit link to PR in doc/release_notes
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Thomas Gilon <thomas.gilon@openenergytransition.org>1 parent 5d135f2 commit 10dd2ff
2 files changed
Lines changed: 61 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
54 | 85 | | |
55 | 86 | | |
56 | 87 | | |
| |||
177 | 208 | | |
178 | 209 | | |
179 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
180 | 217 | | |
181 | 218 | | |
182 | 219 | | |
183 | 220 | | |
184 | 221 | | |
185 | 222 | | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
186 | 226 | | |
187 | 227 | | |
188 | 228 | | |
| |||
191 | 231 | | |
192 | 232 | | |
193 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
194 | 239 | | |
195 | 240 | | |
196 | 241 | | |
| |||
281 | 326 | | |
282 | 327 | | |
283 | 328 | | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
288 | 342 | | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
| 343 | + | |
296 | 344 | | |
297 | 345 | | |
298 | 346 | | |
| |||
0 commit comments