NO FRAMES

CPXNETreadcopyprob

int CPXPUBLIC CPXNETreadcopyprob(CPXCENVptr env, CPXNETptr net, const char * filename_str)
Definition file: cplex.h
Include files: cplex.h

The routine 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.

Example

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

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

net

A pointer to a CPLEX network problem object as returned by CPXNETcreateprob.

filename_str

Name of the network file to read.

Returns:

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