Changes in lemon/howard_mmc.h [1178:21a9f829ab68:1271:fb1c7da561ce] in lemon
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/howard_mmc.h
r1178 r1271 3 3 * This file is a part of LEMON, a generic C++ optimization library. 4 4 * 5 * Copyright (C) 2003-201 05 * Copyright (C) 2003-2013 6 6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport 7 7 * (Egervary Research Group on Combinatorial Optimization, EGRES). … … 99 99 /// This class implements Howard's policy iteration algorithm for finding 100 100 /// a directed cycle of minimum mean cost in a digraph 101 /// \ ref dasdan98minmeancycle, \refdasdan04experimental.101 /// \cite dasdan98minmeancycle, \cite dasdan04experimental. 102 102 /// This class provides the most efficient algorithm for the 103 103 /// minimum mean cycle problem, though the best known theoretical … … 143 143 /// 144 144 /// The path type of the found cycles. 145 /// Using the \ref HowardMmcDefaultTraits "default traits class",145 /// Using the \ref lemon::HowardMmcDefaultTraits "default traits class", 146 146 /// it is \ref lemon::Path "Path<Digraph>". 147 147 typedef typename TR::Path Path; 148 148 149 /// The \ref HowardMmcDefaultTraits "traits class" of the algorithm149 /// The \ref lemon::HowardMmcDefaultTraits "traits class" of the algorithm 150 150 typedef TR Traits; 151 151 … … 156 156 /// these values. 157 157 enum TerminationCause { 158 158 159 159 /// No directed cycle can be found in the digraph. 160 160 NO_CYCLE = 0, 161 161 162 162 /// Optimal solution (minimum cycle mean) is found. 163 163 OPTIMAL = 1, … … 283 283 /// 284 284 /// If you don't call this function before calling \ref run() or 285 /// \ref findCycleMean(), it will allocate a local \ref Path "path"286 /// structure. The destuctor deallocates this automatically285 /// \ref findCycleMean(), a local \ref Path "path" structure 286 /// will be allocated. The destuctor deallocates this automatically 287 287 /// allocated object, of course. 288 288 /// … … 357 357 /// 358 358 /// \param limit The maximum allowed number of iterations during 359 /// the search process. Its default value implies that the algorithm 359 /// the search process. Its default value implies that the algorithm 360 360 /// runs until it finds the exact optimal solution. 361 361 /// 362 362 /// \return The termination cause of the search process. 363 /// For more information, see \ref TerminationCause. 364 TerminationCause findCycleMean(int limit = std::numeric_limits<int>::max()) { 363 /// For more information, see \ref TerminationCause. 364 TerminationCause findCycleMean(int limit = 365 std::numeric_limits<int>::max()) { 365 366 // Initialize and find strongly connected components 366 367 init(); … … 390 391 _best_node = _curr_node; 391 392 } 392 393 393 394 if (iter_limit_reached) break; 394 395 }
Note: See TracChangeset
for help on using the changeset viewer.