Overview | Group | Tree | Graph | Index | Concepts |
The routine CPXNETextract
finds an embedded network in the
LP stored in a CPLEX problem object and copies it as a network to the
network problem object, net
. The extraction algorithm is
controlled by the environment parameter CPX_PARAM_NETFIND
.
If the CPLEX problem object has a basis, an attempt is made to copy the basis to the network object. However, this may fail if the statuses corresponding to the rows and columns of the subnetworks do not form a basis. Even if the entire LP is a network, it may not be possible to load the basis to the network object if none of the slack or artificial variables are basic.
The size of colmap
must be at leastCPXnumcols(env, lp)
+ CPXnumrows(env, lp)
.
The size of rowmap
must be least CPXnumrows(env, lp) +
1
.
Example
status = CPXNETextract (env, net, lp, colmap, rowmap);
env | A pointer to the CPLEX environment as returned by |
net | A pointer to a CPLEX network problem object as returned by |
lp | A pointer to a CPLEX problem object as returned by |
colmap | If not NULL, after completion The size of |
rowmap | If not NULL, after completion The size of Example status = CPXNETextract (env, net, lp, colmap, rowmap); |