Ejemplo n.º 1
0
def sa_test_2():
    run = _sa_test_type_2_
    run(g_9(), 1000, 0.99, 300)
    run(g_9(), 1000, 0.99, 50)
    run(g_15(), 1000, 0.99, 300)
    run(g_15(), 1000, 0.99, 50)
    print "sa_test_2 done"
Ejemplo n.º 2
0
def genetic_sa_test_1():
    run = _genetic_acs_sa_test_type_1_
    run(g_9(), 200, 100, 8, 0.1, SELECTION_ROULETE, "a")
    run(g_9(), 200, 100, 8, 0.1, SELECTION_RANK, "a")
    run(g_15(), 200, 100, 14, 0.1, SELECTION_ROULETE, "a")
    run(g_15(), 200, 100, 14, 0.1, SELECTION_RANK, "a")
    run(g_23(), 200, 100, 22, 0.1, SELECTION_ROULETE, "a")
    run(g_23(), 200, 100, 22, 0.1, SELECTION_RANK, "a")
    print 'genetic_sa_test_1a done'
Ejemplo n.º 3
0
def acs_test_1c():
    run = _acs_test_type_1_
    base_pars = {'alpha': 0.1, 'ro': 0.1, 'tau0': 10}
    runs1 = 100
    iters1 = 30
    run(g_9(), runs1, base_pars, 1, (9, 3), iters1, "c")
    run(g_9(), runs1, base_pars, 30, (9, 3), iters1, "c")
    runs2 = 50
    iters2 = 20
    run(g_15(), runs2, base_pars, 1, (15, 5), iters2, "c")
    run(g_15(), runs2, base_pars, 30, (15, 5), iters2, "c")
    print "acs_test_1c done"
Ejemplo n.º 4
0
def genetic_acs_test_1():
    run = _genetic_acs_test_type_1_
    run(g_9(), 30, 8, 8, 100, 1, "a")
    run(g_15(), 100, 10, 14, 150, 1, "a")
    run(g_23(), 100, 10, 30, 150, 1, "a")
    print 'genetic_acs_test_1 done'
Ejemplo n.º 5
0
def genetic_sa_test_1b():
    run = _genetic_sa_test_type_1_
    run(g_9(), 200, 100, 8, SELECTION_RANK, "b")
    run(g_15(), 200, 100, 14, SELECTION_RANK, "b")
    run(g_23(), 200, 100, 22, SELECTION_RANK, "b")
    print 'genetic_sa_test_1b done'
Ejemplo n.º 6
0
def sa_test_1():
    run = _sa_test_type_1_
    run(g_9(), 500)
    run(g_15(), 500)
    print "sa_test_1 done"
Ejemplo n.º 7
0
def genetic_test_2d():
    run = _genetic_test_type_2_
    run(g_9(), 500, 150, 8, subf="d", crmr=(0.9, 0.9))
    run(g_15(), 500, 150, 14, subf="d", crmr=(0.9, 0.9))
    print 'genetic_test_2d done'
Ejemplo n.º 8
0
def genetic_test_2c():
    run = _genetic_test_type_2_
    run(g_9(), 500, 150, 8, subf="c", crmr=(0.1, 0.1))
    run(g_15(), 500, 150, 14, subf="c", crmr=(0.1, 0.1))
    print 'genetic_test_2c done'
Ejemplo n.º 9
0
def genetic_test_2():
    run = _genetic_test_type_2_
    run(g_9(), 500, 150, 8)
    run(g_15(), 500, 150, 14)
    print 'genetic_test_2a done'
Ejemplo n.º 10
0
def genetic_test_1c():
    run = _genetic_test_type_1_
    run(g_9(), 500, 200, 8, subf="c", crmr=(0.1, 0.1))
    run(g_15(), 500, 200, 14, subf="c", crmr=(0.1, 0.1))
    print 'genetic_test_1 done'
Ejemplo n.º 11
0
def genetic_test_1():
    run = _genetic_test_type_1_
    run(g_9(), 500, 200, 8)
    run(g_15(), 500, 200, 14)
    print 'genetic_test_1 done'