You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default dimensionality of the Dolan function is 2, but the function is only defined for a dimensionality of 5
Also the dim_interchangeable=True, but this should be False
Steps To Reproduce
g = opfunu.name_based.d_func.Dolan(ndim=None)
x = np.random.rand(g.ndim)
g.evaluate(x)
Gives
[476](https://file+.vscode-resource.vscode-cdn.net/home/martin/Documents/GitHub/opfunu/notebooks/~/Documents/GitHub/opfunu/opfunu/name_based/d_func.py:476) self.check_solution(x)
[477](https://file+.vscode-resource.vscode-cdn.net/home/martin/Documents/GitHub/opfunu/notebooks/~/Documents/GitHub/opfunu/opfunu/name_based/d_func.py:477) self.n_fe += 1
--> [478](https://file+.vscode-resource.vscode-cdn.net/home/martin/Documents/GitHub/opfunu/notebooks/~/Documents/GitHub/opfunu/opfunu/name_based/d_func.py:478) return (abs((x[0] + 1.7 * x[1]) * np.sin(x[0]) - 1.5 * x[2]
[479](https://file+.vscode-resource.vscode-cdn.net/home/martin/Documents/GitHub/opfunu/notebooks/~/Documents/GitHub/opfunu/opfunu/name_based/d_func.py:479) - 0.1 * x[3] * np.cos(x[3] + x[4] - x[0]) + 0.2 * x[4] ** 2 - x[1] - 1))
IndexError: index 2 is out of bounds for axis 0 with size 2
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Description of the bug
The default dimensionality of the
Dolan
function is 2, but the function is only defined for a dimensionality of 5Also the
dim_interchangeable=True
, but this should beFalse
Steps To Reproduce
Gives
Additional Information
No response
The text was updated successfully, but these errors were encountered: