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

Feature/interface updates #250

Open
wants to merge 4 commits into
base: standardization
Choose a base branch
from

Conversation

shuds13
Copy link
Collaborator

@shuds13 shuds13 commented Nov 8, 2024

No description provided.

from .base import Generator


class ExternalGenerator(Generator):
Copy link
Collaborator Author

@shuds13 shuds13 Nov 13, 2024

Choose a reason for hiding this comment

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

The reason this wrapper is necessary is that Optimas generators contain a number of variables that are not present in our generators such as varying_parameters etc... (basically everything in the Optimas generator constructors). By wrapping the generator like this, we can allow Optimas functions to make the necessary updates to those data structures (e.g., in ask_trials/tell_trials), while the actual ask/tell() functions only deal with the standard.

As libEnsemble generators do not inherit from Optimas generators, we don't have those, so there has to be some way to give Optimas VaryingParameters etc...

Copy link
Collaborator Author

@shuds13 shuds13 Nov 13, 2024

Choose a reason for hiding this comment

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

The only other thing I can think would be to pass VaryingParameters etc.. into Optimas as a separate config, alongside the standard (or libE) generator. And Optimas could create the wrapper internally, maybe. I'm not sure thats preferable though.

I guess for Optimas to be fully supportive of the generator standard, the constructors still need updating. So Variables is converted to VaryingParameters, but there is still a lot of extra options for Optimas gens (e.g custom_trial_parameters or allow_fixed_parameters)

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.

1 participant