Skip to content

Commit

Permalink
fix issue in uniform mutator
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobbossek committed Dec 7, 2015
1 parent e0203c1 commit c1dd4cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/mutator.uniform.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ makeUniformMutator = function() {
mutator = function(ind, task, control) {
n.params = length(ind)
idx = sample(n.params, size = 1L)
ind[idx] = runif(1L, min = getLower(task$par.set), max = getUpper(task$par.set))
ind[idx] = runif(1L, min = getLower(task$par.set)[idx], max = getUpper(task$par.set)[idx])
return(ind)
}

Expand Down

0 comments on commit c1dd4cb

Please sign in to comment.