Overview | Group | Tree | Graph | Index | Concepts |
The routine CPXNETcopybase
can be used to set the network
basis for a network problem object. It is not necessary to load a basis
prior to optimizing a problem, but a very good starting basis may increase
the speed of optimization significantly. A copied basis does not need to be
feasible to be used by the network optimizer.
Any solution information stored in the problem object is lost.
Example
status = CPXNETcopybase (env, net, arc_stat, node_stat);
CPX_BASIC | if the arc is to be basic |
CPX_AT_LOWER | if the arc is to be nonbasic and its flow is on the lower bound |
CPX_AT_UPPER | if the arc is to be nonbasic and its flow is on the upper bound |
CPX_FREE_SUPER | if the arc is to be nonbasic but is free. In this case its flow is set to 0 |
CPX_BASIC | if the arc is to be basic |
CPX_AT_LOWER | if the arc is to be nonbasic and its flow is set to 0 |
env | A pointer to the CPLEX environment as returned by |
net | A pointer to a CPLEX network problem object as returned by |
astat | Array of status values for network arcs. Each arc needs to be assigned one of the values in Table 1. |
nstat | Array of status values for artificial arcs from each node to the root node. Each artificial arc needs to be assigned one of the values in Table 2. At least one of the artificial arcs must be assigned the status |