Description
The function CPXNETchgbds() is used to change the upper, lower or both bounds on the flow for a set of arcs in the network stored in a CPLEX network problem object. The flow value of an arc can be fixed to a value by setting both bounds to that value. Any solution information that may be stored in the CPLEX network problem object will be lost.Return Value
If the operation is successful, CPXNETchgbds() returns the value 0; if not, it returns a nonzero value to indicate an error.Synopsis
int CPXNETchgbds (CPXENVptr env,
CPXNETptr net,
int cnt,
int *index,
char *lu,
double *bd);
CPXENVptr envThe pointer to the CPLEX environment as returned by one of the
CPXopenCPLEX() routines.
CPXNETptr netA pointer to a CPLEX network problem object as returned by
CPXNETcreateprob().
int cntNumber of bounds to change.
int *indexAn array of arc indices that indicate the bounds to be changed. This array must have a length of at least
cnt. All indices must be in the range [0, narcs-1].
char *luAn array indicating which bounds to change. This array must have a length of at least
cnt. The indicators can be the following:
double *bdAn array of bound values. This array must have a length of at least
cnt. Values greater than or equal to CPX_INFBOUND and less than or equal to -CPX_INFBOUND are considered infinity or -infinity, respectively.
status = CPXNETchgbds (env, net, cnt, index, lu, bd);