CPXXNETcreateprob and CPXNETcreateprob
The routine CPXXNETcreateprob/CPXNETcreateprob constructs a new network
problem object.
CPXNETptr CPXXNETcreateprob( CPXENVptr env, int * status_p, char const * name_str )
CPXNETptr CPXNETcreateprob( CPXENVptr env, int * status_p, char const * name_str )
Description
The routine CPXXNETcreateprob/CPXNETcreateprob constructs a new network
problem object. The new object contains a minimization problem for a network
with 0 (zero) nodes and 0 (zero) arcs.
Other network problem data can be copied to a
network with one of the routines
CPXXNETaddnodes/CPXNETaddnodes,
CPXXNETaddarcs/CPXNETaddarcs,
CPXXNETcopynet/CPXNETcopynet,
CPXXNETextract/CPXNETextract, or
CPXXNETreadcopyprob/CPXNETreadcopyprob.
Arguments
- env
-
A pointer to the CPLEX environment as returned by
CPXXopenCPLEX/CPXopenCPLEX. - status_p
- A pointer to an integer used to return any error code produced by this routine.
- name_str
- Name of the network to be created.
Return
If the operation is successful,CPXXNETcreateprob/CPXNETcreateprob returns the newly constructed 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 contains an integer indicating the cause of the error.
Example
CPXNETptr net = CPXNETcreateprob (env, &status, "mynet");