MCPcopy Create free account
hub / github.com/PythonOT/POT / run

Method run

ot/lp/network_simplex_simple.h:691–701  ·  view source on GitHub ↗

\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

Source from the content-addressed store, hash-verified

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 ///

Callers 3

wdaFunction · 0.45
EMD_wrapFunction · 0.45
EMD_wrap_ompFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected