Description
This function constructs a new CPLEX network problem object. The new object contains a minimization problem for a network with 0 nodes and 0 arcs. Other network problem data can be copied to a network with one of the functions CPXNETaddnodes(), CPXNETaddarcs(), CPXNETcopynet(), CPXNETextract(), or CPXNETreadcopyprob().Return Value
If the operation is successful, CPXNETcreateprob() returns the newly constructed CPLEX network problem object; if not, it returns either NULL or a nonzero value to indicate an error. In case of an error the value pointed to by status_p will contain an integer describing the cause of the error.Synopsis
CPXNETptr CPXNETcreateprob (CPXENVptr env,
int *status_p,
char *name);
CPXENVptr envThe pointer to the CPLEX environment as returned by one of the
CPXopenCPLEX routines.
int *status_pA pointer to an integer used to return any error code produced by this routine.
char *nameName of the network to be created.
CPXNETptr net = CPXNETcreateprob (env, &status, "mynet");