-
Notifications
You must be signed in to change notification settings - Fork 334
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
Fix handlers #286
Fix handlers #286
Conversation
This fixes a bug where the BoundaryHandler would not handle the positions correctly because its memory wasn't populated.
Added newlines for the reflective strategy.
Let me work on this on the weekend, thanks for the quick fix @whzup! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good to go. Will merge next week! Sorry, work happened
@@ -177,13 +177,14 @@ def reflective(self, position, bounds, **kwargs): | |||
:nowrap: | |||
|
|||
\begin{gather*} | |||
\text{while } x_{i, t, d} \not\in \left[lb_d,\,ub_d\right] \text{ do the | |||
following:} | |||
\text{while } x_{i, t, d} \not\in \left[lb_d,\,ub_d\right] \\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I didn't see this. Can you give me visual confirmation if this will render properly once generated?
(Just generate the docs and screenshot what this will look like)
Note to self: Merge on master and tag |
Description
The memory of the
BoundaryHandler
in the Optimizers are now populated before the optimization loop starts. This prevents the Optimizers from generating positions that are out of the bounds in the first two iterations.Also added newlines for the documentation of the "reflective" strategy because I forgot them.
Related Issue
Resolves #285
Motivation and Context
See the issue.
How Has This Been Tested?
Ran the test.
Types of changes
Checklist: