add_column, add_columnex, str_add_columnAdd a column to the lp. unsigned char add_column(lprec *lp, REAL *column); unsigned char add_columnex(lprec *lp, int count, REAL *column, int *rowno); unsigned char str_add_column(lprec *lp, char *col_string); Return Value add_column, add_columnex, and str_add_column return TRUE (1) if the operation was successful. A return value of FALSE (0) indicates an error. Note that for add_columnex, if rowno is not NULL, that the rows must be in ascending order. If not then it will also return FALSE. Parameters lp Pointer to previously created lp model. See return value of make_lp, read_lp, read_LP, read_lpt, read_LPT, read_mps, read_freemps, read_MPS, read_freeMPS, read_XLI count Number of elements in column and rowno. column An array with 1+row (count for add_columnex) 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. col_string A string with row elements that contains the values of the column. Each element must be separated by space(s). Remarks The add_column, add_columnex, str_add_column functions add
a column to the model (at the end) and sets all values of the column 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_obj_fn, set_obj_fnex, str_set_obj_fn, set_obj, del_column, set_add_rowmode, is_add_rowmode, add_constraint, add_constraintex, str_add_constraint, get_column, get_row, get_mat, column_in_lp |