Open tgi-climact opened 2 months ago
Attention: Patch coverage is 20.00000%
with 12 lines
in your changes are missing coverage. Please review.
Project coverage is 86.40%. Comparing base (
a6f2c3e
) to head (59e1aa1
).
Files | Patch % | Lines |
---|---|---|
linopy/solvers.py | 20.00% | 10 Missing and 2 partials :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
thanks @tgi-climact, perhaps 60 secs is a bit long?
thanks @tgi-climact, perhaps 60 secs is a bit long?
Depending on the optimisation in progress, it could be very long or very short. I would like to avoid spam on the Gurobi servers. What would be your suggestion?
Depending on the optimisation in progress, it could be very long or very short. I would like to avoid spam on the Gurobi servers. What would be your suggestion?
okay I see, then the 60 secs make sense I guess.
When using a Gurobi floating token server license or a web single-use license, a program that calls Gurobi Optimizer must obtain a token from a Gurobi token server before it can solve an optimization model. When no token is available, an exception
gurobipy.GurobiError
is raised (source : https://support.gurobi.com/hc/en-us/articles/360029879251-How-do-I-check-the-availability-of-floating-license-tokens).To avoid Gurobi Optimizer throwing an error, I suggest to optionally wait for an available token. This is the purpose of this PR. The waiting time (in seconds) can be configured in the solver options.
Side note : This enables scenarios in PyPSA-Eur.