Overview | Group | Tree | Graph | Index | Concepts |
The routine CPXNETaddarcs
adds new arcs to the network
stored in a network problem object.
Example
status = CPXNETaddarcs (env, net, narcs, fromnode, tonode, NULL, NULL, obj, NULL);
See Also:
env | A pointer to the CPLEX environment as returned by |
net | A pointer to a CPLEX network problem object as returned by |
narcs | Number of arcs to be added. |
fromnode | Array of indices of the “from node” for the arcs to be added. All the indices must be greater than or equal to 0. If a node index is greater than or equal to the number of nodes currently in the network (see |
tonode | Array of indices of the “to node” for the arcs to be added. All the indices must be greater than or equal to 0. If a node index is greater than or equal to the number of nodes currently in the network (see |
low | Pointer to an array of lower bounds on the flow through added arcs. If NULL is passed, all lower bounds default to 0 (zero). Otherwise, the size of the array must be at least |
up | Pointer to an array of upper bounds on the flow of added arcs. If NULL is passed, all upper bounds default to |
obj | Pointer to an array of objective values for the added arcs. If NULL is passed, all objective values default to 0. Otherwise, the size of the array must be at least |
anames | Pointer to an array of names for added arcs. If NULL is passed and the existing arcs have names, default names are assigned to the added arcs. If NULL is passed and the existing arcs have no names, the new arcs are assigned no names. Otherwise, the size of the array must be at least |