Support for reset() in PyOptInterface with Gurobi backend?
#45
Answered
by
metab0t
Zhanwei-Liu
asked this question in
Q&A
|
Hi all, I noticed that when using the Gurobi solver through the I'm wondering if there's an alternative way to reset a model after solving it. My use case involves iterative updates to the right-hand side of constraints, and without resetting the model, the solver appears to become increasingly slow over iterations. Any suggestions or workarounds would be greatly appreciated. Thanks! |
Answered by
metab0t
Jun 29, 2025
Replies: 1 comment 1 reply
|
Implemented in 4b294ca from pyoptinterface import gurobi
model = gurobi.Model()
# Build model steps
model._reset() |
1 reply
Answer selected by
Zhanwei-Liu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Implemented in 4b294ca