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