Description
This function finds an embedded network in the LP stored in a CPLEX LP problem object and copies it as a network to the CPLEX network problem object, net. The extraction algorithm is controlled by the environment parameter CPX_PARAM_NETFIND.Return Value
If the operation is successful, CPXNETextract() returns the value 0; if not, it returns a nonzero value to indicate an error.Synopsis
int CPXNETextract (CPXENVptr env,
CPXNETptr net,
CPXLPptr lp,
int *colmap,
int *rowmap);
CPXENVptr envThe pointer to the CPLEX environment as returned by one of the
CPXopenCPLEX routines.
CPXNETptr netA pointer to a CPLEX network problem object as returned by
CPXNETcreateprob().
CPXLPptr lpA pointer to a CPLEX LP problem object as returned by
CPXcreateprob().
int *colmapIf not
NULL, after completion colmap[i] will contain the index of the LP column that has been mapped to arc i. If colmap[i] < 0, arc i corresponds to the slack variable for row -colmap[i]-1.The size of
colmap must be at leastCPXnumcols(env, lp) + CPXnumrows(env, lp).
int *rowmapIf not
NULL, after completion rowmap[i] will contain the index of the LP row that has been mapped to node i. If colmap[i] < 0, node i is a dummy node that has no corresponding row in the LP.The size of
rowmap must be least CPXnumrows(env, lp) + 1.
status = CPXNETextract (env, net, lp, colmap, rowmap);