Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding reset after pre-lp warmstart loop #236

Merged

Conversation

bknueven
Copy link
Collaborator

...for lazy PTDFs in unit commitment.

@bknueven bknueven force-pushed the reset_after_warmstart branch from 914c822 to a543c7f Compare June 22, 2021 01:28
# the warmstart basis is typically
# worse than useless. If the solver
# implements it, reset the solver.
solver.reset()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this cause an error for anything other than the gurobi persistent interface?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought so for the longest time as well, but this is actually a method on the OptSolver base class:
https://github.com/Pyomo/pyomo/blob/5.7.1/pyomo/opt/base/solvers.py#L752-L756

It would be better if the other persistent solvers implemented this method, but obviously that needs to be updated in Pyomo. In any case, it doesn't seem to do any harm on solvers that aren't gurobi persistent.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting...

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually did not know that existed, haha!

@michaelbynum michaelbynum merged commit 2ff6d41 into grid-parity-exchange:main Jun 28, 2021
@bknueven bknueven deleted the reset_after_warmstart branch June 28, 2021 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants