Previous Page: CPXNETreadcopybase First PageNext Page: CPXNETsolution

CPXNETreadcopyprob


Description

This function reads a network, in the CPLEX .net or DIMACS .min format, from a file and copies it to a CPLEX network problem object. Any other network or solution data that may be stored in that object will be overridden.

Return Value

If the operation is successful, CPXNETreadcopyprob() returns the value 0; if not, it returns a nonzero value to indicate an error.

Synopsis

int CPXNETreadcopyprob (CPXENVptr env,
                        CPXNETptr net,
                        char *filename);

Arguments


CPXENVptr env
The pointer to the CPLEX environment as returned by one of the CPXopenCPLEX() routines.

CPXNETptr net
A pointer to a CPLEX network problem object as returned by CPXNETcreateprob().

char *filename
Name of the network file to read.

Example

status = CPXNETreadcopyprob (env, net, "network.net");

Previous Page: CPXNETreadcopybase First PageNext Page: CPXNETsolution