summaryrefslogtreecommitdiffstats
path: root/example1.py
blob: 165e7ff96e37960d0a332e945c05ef5511a9867e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from vrptw_base import VrptwGraph
from multiple_ant_colony_system import MultipleAntColonySystem

def main():
    file_path = './solomon-100/c208.txt'
    ants_num = 10
    beta = 2
    q0 = 0.1
    show_figure = True

    graph = VrptwGraph(file_path)
    macs = MultipleAntColonySystem(graph, ants_num=ants_num, beta=beta, q0=q0, whether_or_not_to_show_figure=show_figure)
    macs.run_multiple_ant_colony_system()


if __name__ == '__main__':
    main()