int user_get_upper_bounds(void *user, int varnum, int *indices, double *ub)
The user has to return the upper bounds of the variables whose user indices are given. Note that space for ub is already allocated when this function is invoked. There is no post-processing. The default is to set all the upper bounds to 1.
void *user | IN | Pointer to the user-defined LP data structure. |
int varnum |
IN | Length of vars. |
int *vars | IN | Array containing the user indices of the variables. |
double *ub | OUT | Array of upper bounds (to be filled out by the user). |
ERROR | Error. The LP process is aborted. |
DEFAULT | Upper bounds are set to one. |
USER_NO_PP | The user filled up the upper bound array. |
Only the upper bounds for extra variables are ever asked for since the array of bounds for the base variables is always maintained. Lower bounds for the extra variables must be zero and hence there is no corresponding function for lower bounds.