Changeset 65 in tspsg-svn for trunk/src/tspsolver.cpp
- Timestamp:
- Oct 20, 2009, 9:38:01 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tspsolver.cpp
r64 r65 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.