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

add a denouement call for all xhatters #354

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

DLWoodruff
Copy link
Collaborator

I'm not sure this is a good idea (but we have a use case), and if it is, I'm not sure it is the best place in the class hierarchy

@@ -350,6 +350,14 @@ def finalize(self):
for var, value in s._mpisppy_data.best_solution_cache.items():
var.set_value(value, skip_validation=True)

# xhatters that don't want the denouement should remove it from their cylinder
# (e.g. when they call vanilla)
# TBD: should this be higher in the class hierarchy?
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hmm ... seems like a can of worms. Some spokes have algorithms, which call the below code automatically.

This is probably worth sorting out for consistency.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You have a good point. Probably the opt class should be the one calling denouement.

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.

None yet

2 participants