Пример #1
0
def run_eval(filename, g, i, rand):
    random.seed(rand)
    f = open(filename + str(i), 'w')
    f.write("Run %s\n" %i)
    e = epsilonMOEA()
    e.setGenome(g)
    e.setNumberofEvals(1000)
    e.initPop(50)
    f.write(e.runEvals())
    f.write("\n\n")
    f.close()