CPXXNETreadcopyprob and CPXNETreadcopyprob

The routine CPXXNETreadcopyprob/CPXNETreadcopyprob reads a network, in the CPLEX .net or DIMACS .min format, from a file and copies it to a network problem object.

int  CPXXNETreadcopyprob( CPXCENVptr env, CPXNETptr net, char const * filename_str )

int  CPXNETreadcopyprob( CPXCENVptr env, CPXNETptr net, char const * filename_str )

Description

The routine CPXXNETreadcopyprob/CPXNETreadcopyprob reads a network, in the CPLEX .net or DIMACS .min format, from a file and copies it to a network problem object. Any existing network or solution data in the problem object is replaced.

Arguments

env
A pointer to the CPLEX environment as returned by CPXXopenCPLEX/CPXopenCPLEX.
net
A pointer to a CPLEX network problem object as returned by CPXXNETcreateprob/CPXNETcreateprob.
filename_str
Name of the network file to read.

Return

The routine returns 0 (zero) on success and nonzero if an error occurs.

Example


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