Previous Page: CPXNETcopynet First PageNext Page: CPXNETdelarcs

CPXNETcreateprob


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);

Arguments


CPXENVptr env
The pointer to the CPLEX environment as returned by one of the CPXopenCPLEX routines.

int *status_p
A pointer to an integer used to return any error code produced by this routine.

char *name
Name of the network to be created.

Example

CPXNETptr net = CPXNETcreateprob (env, &status, "mynet");

See Also

CPXNETaddnodes, CPXNETaddarcs, CPXNETcopynet, CPXNETextract, CPXNETreadcopyprob

Previous Page: CPXNETcopynet First PageNext Page: CPXNETdelarcs