next up previous contents Back to SYMPHONY Home Page
Next: user_is_feasible Up: User-written functions of the Previous: user_create_lp

user_get_upper_bounds

int user_get_upper_bounds(void *user, int varnum, int *indices, double *ub)

Description:

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.

Arguments:

     
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).

Return values:

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.

Wrapper invoked from:
add_col_set() (when SYMPHONY adds columns after pricing out) and from create_lp_u() (when SYMPHONY has to get the bounds on the extra variables in the new active node).

Note:

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.


next up previous contents
Next: user_is_feasible Up: User-written functions of the Previous: user_create_lp
Ted Ralphs
2000-09-08