Changeset 0ac9690913 in tspsg for src/tspsolver.cpp
- Timestamp:
- Dec 7, 2009, 5:06:44 PM (15 years ago)
- Branches:
- 0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- a218bf2cb2
- Parents:
- 3b1caa32d0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tspsolver.cpp
r3b1caa32d0 r0ac9690913 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.