\brief Run the algorithm. This function runs the algorithm. The paramters can be specified using functions \ref lowerMap(), \ref upperMap(), \ref costMap(), \ref supplyMap(), \ref stSupply(), \ref supplyType(). For example, \code NetworkSimplexSimple ns(graph); ns.lowerMap(lower).upperMap(upper).costMap(cost) .supplyMap(sup).run(); \endcode This function can be called more than once
| 689 | /// \see ProblemType, PivotRule |
| 690 | /// \see resetParams(), reset() |
| 691 | ProblemType run() { |
| 692 | #if DEBUG_LVL>0 |
| 693 | std::cout << "OPTIMAL = " << OPTIMAL << "\nINFEASIBLE = " << INFEASIBLE << "\nUNBOUNDED = " << UNBOUNDED << "\nMAX_ITER_REACHED" << MAX_ITER_REACHED << "\n" ; |
| 694 | #endif |
| 695 | |
| 696 | if (!init()) return INFEASIBLE; |
| 697 | #if DEBUG_LVL>0 |
| 698 | std::cout << "Init done, starting iterations\n"; |
| 699 | #endif |
| 700 | return start(); |
| 701 | } |
| 702 | |
| 703 | /// \brief Reset all the parameters that have been given before. |
| 704 | /// |
no outgoing calls
no test coverage detected