예제 #1
0
def main():
    '''main()'''
    random.seed(64)

    instance_name = 'R101'

    unit_cost = 8.0
    init_cost = 60.0
    wait_cost = 0.5
    delay_cost = 1.5

    ind_size = 25
    pop_size = 80
    cx_pb = 0.85
    mut_pb = 0.01
    n_gen = 100

    export_csv = True

    run_gavrptw(instance_name=instance_name,
                unit_cost=unit_cost,
                init_cost=init_cost,
                wait_cost=wait_cost,
                delay_cost=delay_cost,
                ind_size=ind_size,
                pop_size=pop_size,
                cx_pb=cx_pb,
                mut_pb=mut_pb,
                n_gen=n_gen,
                export_csv=export_csv)
예제 #2
0
def main():
    '''main()'''
    random.seed(64)

    instance_name = 'Customized_Data'

    unit_cost = 8.0
    init_cost = 100.0
    wait_cost = 1.0
    delay_cost = 1.5

    ind_size = 100
    pop_size = 400
    cx_pb = 0.85
    mut_pb = 0.02
    n_gen = 300

    export_csv = True
    customize_data = True

    run_gavrptw(instance_name=instance_name,
                unit_cost=unit_cost,
                init_cost=init_cost,
                wait_cost=wait_cost,
                delay_cost=delay_cost,
                ind_size=ind_size,
                pop_size=pop_size,
                cx_pb=cx_pb,
                mut_pb=mut_pb,
                n_gen=n_gen,
                export_csv=export_csv,
                customize_data=customize_data)
예제 #3
0
def main():
    '''main()'''
    random.seed(64)

    instance_name = 'C204'

    unit_cost = 8.0
    init_cost = 100.0
    wait_cost = 1.0
    delay_cost = 1.5

    ind_size = 100
    pop_size = 400
    cx_pb = 0.85
    mut_pb = 0.02
    n_gen = 300

    export_csv = True

    run_gavrptw(instance_name=instance_name, \
        unit_cost=unit_cost, init_cost=init_cost, wait_cost=wait_cost, delay_cost=delay_cost, \
        ind_size=ind_size, pop_size=pop_size, cx_pb=cx_pb, mut_pb=mut_pb, n_gen=n_gen, \
        export_csv=export_csv)