Changeset 2bc8e278b7 in tspsg for src/tspsolver.cpp
- Timestamp:
- Nov 5, 2007, 1:32:40 AM (17 years ago)
- Branches:
- 0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- bcfd415fe2
- Parents:
- 2f915f19f2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tspsolver.cpp
r2f915f19f2 r2bc8e278b7 23 23 24 24 #include "tspsolver.h" 25 #include "tspmodel.h" 25 26 26 27 CTSPSolver::CTSPSolver() … … 30 31 double CTSPSolver::findMinInRow(int nRow, tMatrix matrix) 31 32 { 32 double min = infinity;33 double min = INFINITY; 33 34 for (int k = 0; k < nCities; k++) 34 35 if (min > matrix[nRow][k]) 35 36 min = matrix[nRow][k]; 36 return min == infinity? 0 : min;37 return min == INFINITY ? 0 : min; 37 38 } 38 39 39 40 double CTSPSolver::findMinInCol(int nCol, tMatrix matrix) 40 41 { 41 double min = infinity;42 double min = INFINITY; 42 43 for (int k = 0; k < nCities; k++) 43 44 if (min > matrix[k][nCol]) 44 45 min = matrix[k][nCol]; 45 return min == infinity? 0 : min;46 return min == INFINITY ? 0 : min; 46 47 } 47 48
Note: See TracChangeset
for help on using the changeset viewer.