Skip to content

Iter0 Warmstarts #556

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

Merged
merged 5 commits into from
Aug 15, 2025
Merged

Iter0 Warmstarts #556

merged 5 commits into from
Aug 15, 2025

Conversation

bknueven
Copy link
Collaborator

#331 fixed a bug when warm-starting PH the initial typical trivial bound would be incorrect if the proximal term was active. To fix this, the warmstart wasn't applied until iteration 1 instead, but this meant the iteration 0 solve was wasted effort.

This PR fixes the same bug but preserves the warmstart being applied at iteration 0 by checking if the proximal term was enabled before reporting the iteration 0 "bound". We also clean up some redundant checking for the best_bound_obj_val.

Copy link
Collaborator

@DLWoodruff DLWoodruff left a comment

Choose a reason for hiding this comment

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

This was always an issue with reading W, it just seems more stark now that we are doing it pre-iter0: should we check to see if the W is valid? (i.e. E[W] = 0)

@bknueven
Copy link
Collaborator Author

This was always an issue with reading W, it just seems more stark now that we are doing it pre-iter0: should we check to see if the W is valid? (i.e. E[W] = 0)

It looks like we already check by default:

def set_W_from_file(fname, PHB, rank, sep_files=False, disable_check=False):

@bknueven bknueven merged commit 214694b into Pyomo:main Aug 15, 2025
19 checks passed
@bknueven bknueven deleted the real_warmstarts branch August 15, 2025 17:43
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