NO FRAMES

CPXNETaddnodes

int CPXPUBLIC CPXNETaddnodes(CPXCENVptr env, CPXNETptr net, int nnodes, const double * supply, char ** name)
Definition file: cplex.h
Include files: cplex.h

The routine CPXNETaddnodes adds new nodes to the network stored in a network problem object.

Example

 status = CPXNETaddnodes (env, net, nnodes, supply, NULL);

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

net

A pointer to a CPLEX network problem object as returned by CPXNETcreateprob.

nnodes

Number of nodes to add.

supply

Supply values for the added nodes. If NULL is passed, all supplies defaults to 0 (zero). Otherwise, the size of the array must be at least nnodes.

name

Pointer to an array of names for added nodes. If NULL is passed and the existing nodes have names, default names are assigned to the added nodes. If NULL is passed but the existing nodes have no names, the new nodes are assigned no names. Otherwise, the size of the array must be at least nnodes and every name in the array must be a string terminating in 0. If the existing nodes have no names and nnames is not NULL, default names are assigned to the existing nodes.

Returns:

The routine returns zero on success and nonzero if an error occurs.