set_rh_vec, str_set_rh_vecSet the right hand side (RHS) vector (column 0). void set_rh_vec(lprec *lp, REAL *rh); unsigned char str_set_rh_vec(lprec *lp, char *rh_string); 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, read_lp, read_LP, read_mps, read_freemps, read_MPS, read_freeMPS, read_XLI rh An array with row elements that contains the values of the RHS. rh_string 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, read_lp, read_LP, read_lpt, read_LPT, read_mps, read_freemps, read_MPS, read_freeMPS, read_XLI, set_rh, get_rh, add_constraint, add_constraintex, str_add_constraint, add_column, add_columnex, str_add_column, get_mat, get_column, get_row |