set_rh_vec, str_set_rh_vecSet the right hand side (RHS) vector (column 0). void set_rh_vec(lprec *lp, REAL *rh); int str_set_rh_vec(lprec *lp, char *str_rh); Return Value
set_rh_vec has no return value. str_set_rh_vec returns TRUE (1)
if the operation was successful. A return value of FALSE (0) indicates an
error. Parameters lp Pointer to previously created lp model. See return value of make_lp, copy_lp, read_lp, read_lp_file, read_LP, read_mps, read_MPS rh An array with row elements that contains the values of the RHS. str_row A string with row elements that contains the values of the RHS. Each element must be separated by space(s). Remarks
The set_rh_vec, str_set_rh_vec functions set all values of the
RHS vector (column 0) at once. Example
See Also make_lp, copy_lp, read_lp, read_lp_file, read_LP, read_mps, read_MPS, set_rh, get_rh, add_constraint, add_column, get_mat, mat_elm, get_column, get_row |