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

Possible bug in Keane test script #20

Closed
the-alleged-car opened this issue Mar 14, 2018 · 1 comment
Closed

Possible bug in Keane test script #20

the-alleged-car opened this issue Mar 14, 2018 · 1 comment
Assignees

Comments

@the-alleged-car
Copy link

Hi,

In the eval_ineq_constraints() method in Keane.py, it seems to me that the code

vec = np.zeros((x.shape[0], 2))
vec[:, 0] = 0.75 - np.prod(x)
vec[:, 1] = np.sum(x) - 7.5 * self.dim

should be

vec = np.zeros((a.shape[0], 2))
vec[:, 0] = 0.75 - np.prod(a, axis=1)
vec[:, 1] = np.sum(a, axis=1) - 7.5 * self.dim

I am basing my understanding on the documentation on the expected form of eval_ineq_constraints() method explained here.

@dme65 dme65 self-assigned this Mar 21, 2018
@dme65
Copy link
Owner

dme65 commented Dec 7, 2018

Yes, you're correct. The constraint handling was a bit awkward overall and was removed in 0.2.0. The recent changes to the framework will make it easier to add this functionality back later.

@dme65 dme65 closed this as completed Dec 7, 2018
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

No branches or pull requests

2 participants