set_row, set_rowexset a constraint in the lp. unsigned char set_row(lprec *lp, int row_no, REAL *row); unsigned char set_rowex(lprec *lp, int row_no, int count, REAL *row, int *colno); Return Value set_row, set_rowex return 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 row_no The row number that must be changed. count Number of elements in row and colno. row An array with 1+column (count for set_rowex if colno is different from NULL) elements that contains the values of the row. colno An array with count elements that contains the column numbers of the row. However this variable can also be NULL. In that case element i in the variable row is column i and values start at element 1. Remarks The set_row, set_rowex functions change the values of an existing row in the
model at once. Note that add_constraint, add_constraintex, str_add_constraint
add a row to the model, making the number of rows one larger. These functions change an existing row. Example
See Also make_lp, read_lp, read_LP, read_mps, read_freemps, read_MPS, read_freeMPS, read_XLI, get_row, add_constraint, add_constraintex, str_add_constraint, set_obj_fn, set_obj_fnex, str_set_obj_fn, set_obj, set_add_rowmode, is_add_rowmode, get_constr_type, is_constr_type, del_constraint, add_column, add_columnex, str_add_column, set_column, set_columnex, get_column, get_row, get_mat |