| Overview | Group | Tree | Graph | Index | Concepts |
The routine CPXNETwriteprob writes the network stored in a
network problem object to a file. This can be done in CPLEX
(.net) or DIMACS (.min) network file format (MIN)
or as the LP representation of the network in any of the LP formats
(.lp, .mps, or .sav).
If the file name ends with .gz, a compressed file is
written.
| net | for CPLEX network format |
| min | for DIMACS network format |
| lp | for LP format of LP formulation |
| mps | for MPS format of LP formulation |
| sav | for SAV format of LP formulation |
Example
status = CPXNETwriteprob (env, net, "network.net", NULL);
| env | A pointer to the CPLEX environment as returned by |
| net | A pointer to a CPLEX network problem object as returned by |
| filename_str | Name of the network file to write, where the file extension specifies the file format unless overridden by the |
| format_str | File format to generate. Possible values appear in the table. If NULL is passed, the format is inferred from the file name. |