[Lemon-user] lemon::MinCostMaxFlow

Alpár Jüttner alpar at cs.elte.hu
Mon Nov 22 08:14:06 CET 2010


Btw, there is a pretty old enhancement proposal targeting min cost max
flow in the isssue tracer, see
http://lemon.cs.elte.hu/trac/lemon/ticket/244

Best regards,
Alpar



On Sun, 2010-11-21 at 22:51 +0100, Kovács Péter wrote:
> Dear Arun,
> 
> The current releases of LEMON do not contain a direct implementation of 
> MinCostMaxFlow. However, they provide efficient algorithms for the max 
> flow and min cost flow problems and it is quite easy to combine these 
> algorithms to find a min cost max flow.
> 
> You can find the max flow value between two nodes using the Preflow 
> class (e.g. by calling runMinCut(), which is faster than run()). After 
> that, you should use NetworkSimplex or CostScaling to compute a minimum 
> cost flow with the previously computed flow vale (use stSupply(s, t, 
> flowValue) for initialization).
> 
> Best regards,
> Peter
> 
> > Hi,
> >
> > I was wondering whether this class has been implemented? Any example of
> > it's usage please?
> >
> > Thanks,
> > --
> > Arun
> _______________________________________________
> Lemon-user mailing list
> Lemon-user at lemon.cs.elte.hu
> http://lemon.cs.elte.hu/mailman/listinfo/lemon-user





More information about the Lemon-user mailing list