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);
CPXENVptr envThe pointer to the CPLEX environment as returned by one of the
CPXopenCPLEX() routines.
CPXNETptr netA pointer to a CPLEX network problem object as returned by
CPXNETcreateprob().
char *filenameName of the network file to read.
status = CPXNETreadcopyprob (env, net, "network.net");