Changeset 71 in tspsg-svn for trunk/src/tspsolver.cpp
- Timestamp:
- Dec 7, 2009, 5:06:44 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tspsolver.cpp
r67 r71 209 209 } 210 210 211 bool CTSPSolver::findCandidate( tMatrix matrix, int &nRow, int &nCol)211 bool CTSPSolver::findCandidate(const tMatrix &matrix, int &nRow, int &nCol) const 212 212 { 213 213 nRow = -1; … … 232 232 } 233 233 234 double CTSPSolver::findMinInCol(int nCol, tMatrix matrix, int exr)234 double CTSPSolver::findMinInCol(int nCol, const tMatrix &matrix, int exr) const 235 235 { 236 236 double min = INFINITY; … … 241 241 } 242 242 243 double CTSPSolver::findMinInRow(int nRow, tMatrix matrix, int exc)243 double CTSPSolver::findMinInRow(int nRow, const tMatrix &matrix, int exc) const 244 244 { 245 245 double min = INFINITY; … … 250 250 } 251 251 252 bool CTSPSolver::hasSubCycles(int nRow, int nCol) 252 bool CTSPSolver::hasSubCycles(int nRow, int nCol) const 253 253 { 254 254 if ((nRow < 0) || (nCol < 0) || route.isEmpty() || !(route.size() < nCities - 1) || !route.contains(nCol))
Note: See TracChangeset
for help on using the changeset viewer.