Skip to content

Commit

Permalink
Bug in gaussian mutation operator anyoptimization#481
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Blank committed Oct 6, 2023
1 parent 7d63118 commit 99de7d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymoo/operators/mutation/gauss.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def mut_gauss(X, xl, xu, sigma, prob):
_xu = np.repeat(xu[None, :], X.shape[0], axis=0)[mut]
sigma = sigma[:, None].repeat(n_var, axis=1)[mut]

Xp[mut] = np.random.normal(X[mut], sigma * (_xu * _xl))
Xp[mut] = np.random.normal(X[mut], sigma * (_xu - _xl))

Xp = repair_random_init(Xp, X, xl, xu)

Expand Down

0 comments on commit 99de7d7

Please sign in to comment.