A decorator that tuple-ize the result of a function. This is useful when the evaluation function returns a single value.
(func)
| 39 | individual[i] = random.gauss(mu_i, sigma) |
| 40 | |
| 41 | def tupleize(func): |
| 42 | """A decorator that tuple-ize the result of a function. This is useful |
| 43 | when the evaluation function returns a single value. |
| 44 | """ |
| 45 | def wrapper(*args, **kargs): |
| 46 | return func(*args, **kargs), |
| 47 | return wrapper |
| 48 | |
| 49 | def main(func, dim, maxfuncevals, ftarget=None): |
| 50 | toolbox = base.Toolbox() |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…