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()
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)
def runone(show=True): counter.reset() global c c = erun(genetics.copy(), obj, show=show) c.run(goalstrength=goalstrength, maxsteps=maxsteps) return counter.i
def runone(show=True): global c c = erun(genetics.copy(), obj, show=show, population=20) c.run(goalstrength=goalstrength, maxsteps=maxsteps) return 1