CPXXNETaddnodes and CPXNETaddnodes

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

int  CPXXNETaddnodes( CPXCENVptr env, CPXNETptr net, CPXDIM nnodes, double const * supply, char const *const * name )

int  CPXNETaddnodes( CPXCENVptr env, CPXNETptr net, int nnodes, double const * supply, char ** name )

Description

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

Arguments

env
A pointer to the CPLEX environment as returned by CPXXopenCPLEX/CPXopenCPLEX.
net
A pointer to a CPLEX network problem object as returned by CPXXNETcreateprob/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.

Return

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

Example


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