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

[BUG]: Wrong self._bounds index used for setting self._ndim #26

Closed
mpvanderschelling opened this issue Feb 8, 2024 · 1 comment
Closed

Comments

@mpvanderschelling
Copy link

Problem

When presented a funciton where ndim cannot be 2 (if dim_changeable=False and default_dim != 2) and ndim=None is given upon initialization, this function makes it so the dimension is set to 2, because the wrong index is given when setting self._ndim = self._bounds.shape[1].

self._ndim = self._bounds.shape[1]

Possible solution

This should be the first index (self._bounds.shape[0]). This is correctly implemented in the cec_based submodule

@thieu1995
Copy link
Owner

@mpvanderschelling,

You are right. This problem has been fixed. Thank you.

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