Function highs_sys::Highs_qpCall
source · pub unsafe extern "C" fn Highs_qpCall(
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,
col_value: *mut f64,
col_dual: *mut f64,
row_value: *mut f64,
row_dual: *mut f64,
col_basis_status: *mut HighsInt,
row_basis_status: *mut HighsInt,
model_status: *mut HighsInt
) -> HighsInt
Expand description
Formulate and solve a quadratic program using HiGHS.
The signature of this method is identical to Highs_lpCall
, except that it
has additional arguments for specifying the Hessian matrix.
@param q_num_nz The number of nonzeros in the Hessian matrix.
@param q_format The format of the Hessian matrix in the form of a
kHighsHessianStatus
constant. If q_num_nz > 0, this must
be kHighsHessianFormatTriangular
.
@param q_start The Hessian matrix is provided in the same format as the
constraint matrix, using q_start
, q_index
, and q_value
in the place of a_start
, a_index
, and a_value
.
@param q_index An array of length [q_num_nz] with indices of matrix
sentries.
@param q_value An array of length [q_num_nz] with values of matrix entries.
@returns A kHighsStatus
constant indicating whether the call succeeded.