Exemplo n.º 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()
Exemplo n.º 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)
Exemplo n.º 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
Exemplo n.º 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