File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,10 @@ void ACOTSP::Simulate()
19
19
for (i = 1 ; i <= antsAmount; i++)
20
20
{
21
21
// Coloca la hormiga en una ciudad aleatoria:
22
- firstCity = rand () % (cities) + 1 ;
22
+ firstCity = rand () % (cities);
23
23
vector<int > path = {};
24
24
path.push_back (firstCity);
25
- for (int x = 1 ; x < cities; x++)
25
+ for (int x = 0 ; x < cities; x++)
26
26
path.push_back (-1 );
27
27
paths.push_back (path);
28
28
}
@@ -95,8 +95,8 @@ void ACOTSP::Simulate()
95
95
pathsProbability.push_back (probability);
96
96
}
97
97
}
98
- cout<<" Actual:" <<actualCity<<" ; Incial: " <<firstCity<<" ; " ;
99
- cout<<probability<<" Con " <<disponibles.size ()<<endl;
98
+ // cout<<"Actual:"<<actualCity<<"; Incial: "<<firstCity<<"; ";
99
+ // cout<<probability<<"Con "<<disponibles.size()<<endl;
100
100
double suma = 0 ;
101
101
for (int ix = 0 ; ix < pathsProbability.size (); ix++)
102
102
{
You can’t perform that action at this time.
0 commit comments