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 function estimate_sparsity currently computes the fitness by changing each component of the decision vector x by the same amount (default 1e-8). This causes issues for problems that are not scaled in a proper way.
A possible fix would be to pass instead the lower and upper bounds of x as arguments, in addition to a number N: the function could compute a random x within the bounds, then for every component of x change it N times (one by one) within the respective bounds, and check if the fitness components are constant in all of the N points obtained.
The text was updated successfully, but these errors were encountered:
Indeed the current implementation fails miserably on unscaled problems. The proposed solution would definitely fix this. When #110 and #115 are merged a PR would be welcomed.
The function estimate_sparsity currently computes the fitness by changing each component of the decision vector
x
by the same amount (default 1e-8). This causes issues for problems that are not scaled in a proper way.A possible fix would be to pass instead the lower and upper bounds of
x
as arguments, in addition to a numberN
: the function could compute a randomx
within the bounds, then for every component ofx
change itN
times (one by one) within the respective bounds, and check if the fitness components are constant in all of theN
points obtained.The text was updated successfully, but these errors were encountered: