Exemple #1
0
def quickmut(obj, population=20, goal=0.0, maxsteps=1000, show=True):

    c = erun(crossevo(), obj, population=population, show=show)
    c.run(goalstrength=goal, maxsteps=maxsteps)
    return c.getwinner()
Exemple #2
0
def runone(show=True):
    global c
    c = xevo.erun(genetics.copy(), obj, show=show, population=100, delay=0.001)
    c.run(goalstrength=goalstrength, maxsteps=maxsteps)
Exemple #3
0
def runone(show=True):
    counter.reset()
    global c
    c = erun(genetics.copy(), obj, show=show)
    c.run(goalstrength=goalstrength, maxsteps=maxsteps)
    return counter.i
Exemple #4
0
def runone(show=True):
    global c
    c = erun(genetics.copy(), obj, show=show, population=20)
    c.run(goalstrength=goalstrength, maxsteps=maxsteps)
    return 1