Do not consider adding at a :gap
This commit is contained in:
parent
f6a9426751
commit
82657abf32
@ -111,7 +111,8 @@ The function `new-individual` returns a new individual produced by selection and
|
|||||||
existing instruction."
|
existing instruction."
|
||||||
[plushy instructions umad-rate]
|
[plushy instructions umad-rate]
|
||||||
(apply concat
|
(apply concat
|
||||||
(map #(if (< (rand) umad-rate)
|
(map #(if (and (not= % :gap)
|
||||||
|
(< (rand) umad-rate))
|
||||||
(shuffle [% (utils/random-instruction instructions)])
|
(shuffle [% (utils/random-instruction instructions)])
|
||||||
[%])
|
[%])
|
||||||
plushy)))
|
plushy)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user