Skip to content

Add function for constraint optimization for solenoid alignment, and a MWE notebook - #15

Open
cr-xu wants to merge 1 commit into
xopt-org:mainfrom
cr-xu:add-constraint-in-differentialevolution-optimizer
Open

cr-xu wants to merge 1 commit into
xopt-org:mainfrom
cr-xu:add-constraint-in-differentialevolution-optimizer

Conversation

@cr-xu

@cr-xu cr-xu commented Sep 22, 2026 •

Copy link
Copy Markdown

An initial draft to add constraints for the mean optimizer in the pathwise/optimize.py.

This addresses the #14

Example outcome of constained vs. unconstrained optimization with an artifical exclusion zone.

image

@cr-xu cr-xu changed the title Add a draft for constraint optimization and a MWE notebook Add function for constraint optimization for solenoid alignment, and a MWE notebook Sep 22, 2026
@cr-xu

cr-xu commented Sep 22, 2026

Copy link
Copy Markdown
Author

A possible use case could be e.g. we want to find the best solenoid alignment with a reasonable QE on cathode.

Also, when we ran BAX experiments at APS with a safety constraint, the BAX steps were sampling points mostly satisfying the safety constraint (high charge), so the region violating it didn't really get explored. At the end with the get_bax_mean_prediction(), it chose the unxplored region due to a poorly-fitted mdoel there, which had no charge.
Adding this constraint also in the evaluation would make the final evaluation more meaningful.

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