Example: network to LP transformation netex2.c
Demonstrates an example of converting a network flow model to its LP model in the C API.
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.