pub unsafe extern "C" fn Highs_passModel(
highs: *mut c_void,
num_col: HighsInt,
num_row: HighsInt,
num_nz: HighsInt,
q_num_nz: HighsInt,
a_format: HighsInt,
q_format: HighsInt,
sense: HighsInt,
offset: f64,
col_cost: *const f64,
col_lower: *const f64,
col_upper: *const f64,
row_lower: *const f64,
row_upper: *const f64,
a_start: *const HighsInt,
a_index: *const HighsInt,
a_value: *const f64,
q_start: *const HighsInt,
q_index: *const HighsInt,
q_value: *const f64,
integrality: *const HighsInt,
) -> HighsIntExpand description
Pass a model to HiGHS in a single function call. This is faster than
constructing the model using Highs_addRow and Highs_addCol.
@param highs A pointer to the Highs instance.
@param num_col The number of columns.
@param num_row The number of rows.
@param num_nz The number of elements in the constraint matrix.
@param q_num_nz The number of elements in the Hessian matrix.
@param a_format The format of the constraint matrix to use in the form of
a kHighsMatrixFormat constant.
@param q_format The format of the Hessian matrix to use in the form of a
kHighsHessianFormat constant.
@param sense The optimization sense in the form of a kHighsObjSense
constant.
@param offset The constant term in the objective function.
@param col_cost An array of length [num_col] with the objective
coefficients.
@param col_lower An array of length [num_col] with the lower column bounds.
@param col_upper An array of length [num_col] with the upper column bounds.
@param row_lower An array of length [num_row] with the upper row bounds.
@param row_upper An array of length [num_row] with the upper row bounds.
@param a_start The constraint matrix is provided to HiGHS in compressed
sparse column form (if a_format is
kHighsMatrixFormatColwise, otherwise compressed sparse
row form). The sparse matrix consists of three arrays,
a_start, a_index, and a_value. a_start is an array
of length [num_col] containing the starting index of each
column in a_index. If a_format is
kHighsMatrixFormatRowwise the array is of length
[num_row] corresponding to each row.
@param a_index An array of length [num_nz] with indices of matrix
entries.
@param a_value An array of length [num_nz] with values of matrix entries.
@param q_start The Hessian matrix is provided to HiGHS as the lower
triangular component in compressed sparse column form
(or, equivalently, as the upper triangular component
in compressed sparse row form). The sparse matrix consists
of three arrays, q_start, q_index, and q_value.
q_start is an array of length [num_col]. If the model
is linear, pass NULL.
@param q_index An array of length [q_num_nz] with indices of matrix
entries. If the model is linear, pass NULL.
@param q_value An array of length [q_num_nz] with values of matrix
entries. If the model is linear, pass NULL.
@param integrality An array of length [num_col] containing a kHighsVarType
constant for each column.
@returns A kHighsStatus constant indicating whether the call succeeded.