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. 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 count Number of elements in column and rowno. column An array with 1+rows (count for add_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. 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_mps, read_freemps, read_MPS, read_freeMPS, read_XLI, set_obj_fn, set_obj_fnex, str_set_obj_fn, set_obj, set_column, set_columnex, del_column, set_add_rowmode, is_add_rowmode, add_constraint, add_constraintex, str_add_constraint, set_row, set_rowex, get_column, get_row, get_mat, column_in_lp |