get_mat, mat_elmGet a single element from the matrix. REAL get_mat(lprec *lp, int row, int column); REAL mat_elm(lprec *lp, int row, int column); Return Value
get_mat and mat_elm return the value of the element on row row, column column. If no value was set for this element, the function returns 0. Parameters lp Pointer to previously created lp model. See return value of make_lp, copy_lp, read_lp, read_lp_file, read_LP, read_mps, read_MPS row Row number of the matrix. Must be between 0 and number of rows in the lp. Row 0 is objective function. column Column number of the matrix. Must be between 1 and number of columns in the lp. Remarks
get_mat and mat_elm are identical. mat_elm is for backwards compatibility. Example
See Also make_lp, copy_lp, read_lp, read_lp_file, read_LP, read_mps, read_MPS, get_row, get_column, set_mat |