Function highs_sys::Highs_getModel
source · pub unsafe extern "C" fn Highs_getModel(
highs: *const c_void,
a_format: HighsInt,
q_format: HighsInt,
num_col: *mut HighsInt,
num_row: *mut HighsInt,
num_nz: *mut HighsInt,
hessian_num_nz: *mut HighsInt,
sense: *mut HighsInt,
offset: *mut f64,
col_cost: *mut f64,
col_lower: *mut f64,
col_upper: *mut f64,
row_lower: *mut f64,
row_upper: *mut f64,
a_start: *mut HighsInt,
a_index: *mut HighsInt,
a_value: *mut f64,
q_start: *mut HighsInt,
q_index: *mut HighsInt,
q_value: *mut f64,
integrality: *mut HighsInt
) -> HighsInt
Expand description
Get the data from a HiGHS model.
The input arguments have the same meaning (in a different order) to those
used in Highs_passModel
.
Note that all arrays must be pre-allocated to the correct size before calling
Highs_getModel
. Use the following query methods to check the appropriate
size:
Highs_getNumCol
Highs_getNumRow
Highs_getNumNz
Highs_getHessianNumNz
@returns A kHighsStatus
constant indicating whether the call succeeded.