-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
42 lines (37 loc) · 964 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include <iostream>
#include <fstream>
#include "tsp.hpp"
#include "reader.cpp"
#include "show.cpp"
#include "parameters.cpp"
#include "algorithm.cpp"
#include "tsp.cpp"
using namespace std;
int main(int argc, char const *argv[])
{
// Ejecuta la instancia de TSP de 29 ciudades:
ACOTSP TSP29(29, "instances/tsp29.csv");
TSP29.SetParameters();
TSP29.InstanceTSP();
// TSP29.ShowRoads();
// TSP29.ShowPheromones();
// TSP29.ShowVisibilities();
// TSP29.ShowPaths();
TSP29.Simulate();
TSP29.ShowBest();
system("pause");
system("cls");
// Ejecuta la instancia de TSP de 127 ciudades:
ACOTSP TSP127(127, "instances/tsp127.csv");
TSP127.SetParameters();
TSP127.InstanceTSP();
// TSP127.ShowRoads();
// TSP127.ShowPheromones();
// TSP127.ShowVisibilities();
// TSP127.ShowPaths();
TSP127.Simulate();
TSP127.ShowBest();
system("pause");
system("cls");
return 0;
}