ILOG CPLEX 11.0 User's Manual > Continuous Optimization > Solving Network-Flow Problems > Example: Network to LP Transformation netex2.c

This example shows how to transform a network-flow problem into its corresponding LP formulation. That example also indicates why you might want to make such a change. The example reads a network-flow problem from a file (rather than populating the problem object by adding rows and columns as in netex1.c). You can find the data of this example in the file examples/data/infnet.net. After reading the data from that file, the example then attempts to solve the problem by calling the Callable Library routine CPXNETprimopt. If it detects that the problem is infeasible, it then invokes the conflict refiner to analyze the problem and possibly indicate the cause of the infeasibility.

The complete program netex2.c appears online in the standard distribution at yourCPLEXinstallation/examples/src.