Changeset caef58b531 in tspsg for src/tspsolver.cpp
- Timestamp:
- Oct 20, 2009, 9:38:01 PM (15 years ago)
- Branches:
- 0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- 85ad815b0b
- Parents:
- bc1b8837b6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tspsolver.cpp
rbc1b8837b6 rcaef58b531 24 24 #include "tspsolver.h" 25 25 26 //! Class constructor 26 27 CTSPSolver::CTSPSolver() 27 28 : nCities(0) … … 125 126 } 126 127 127 // TODO: Comment the algorithm 128 /*! 129 * \brief Solves the given task. 130 * \param numCities Number of cities in the task. 131 * \param task The matrix of city-to-city travel costs. 132 * \param parent The parent widget for displaying messages and dialogs. 133 * 134 * \todo TODO: Comment the algorithm. 135 */ 128 136 sStep *CTSPSolver::solve(int numCities, tMatrix task, QWidget *parent) 129 137 { … … 226 234 } 227 235 236 /*! 237 * \brief Returns the sorted optimal path, starting from City 1. 238 */ 228 239 QString CTSPSolver::getSortedPath() const 229 240 { … … 242 253 } 243 254 255 /*! 256 * \brief Returns CTSPSolver's version ID. 257 * 258 * Current version ID is <b>\$Id$</b>. 259 */ 244 260 QString CTSPSolver::getVersionId() 245 261 { … … 247 263 } 248 264 265 /*! 266 * \brief Returns whether or not the solution is definitely optimal. 267 * 268 * The solution may need some further interations to determine whether it is optimal. 269 * In such cases this function returns \p false. 270 */ 249 271 bool CTSPSolver::isOptimal() const 250 272 {
Note: See TracChangeset
for help on using the changeset viewer.