Function highs_sys::Highs_passHessian
source · pub unsafe extern "C" fn Highs_passHessian(
highs: *mut c_void,
dim: HighsInt,
num_nz: HighsInt,
format: HighsInt,
start: *const HighsInt,
index: *const HighsInt,
value: *const f64
) -> HighsInt
Expand description
Set the Hessian matrix for a quadratic objective.
@param highs A pointer to the Highs instance.
@param dim The dimension of the Hessian matrix. Should be [num_col].
@param num_nz The number of non-zero elements in the Hessian matrix.
@param format The format of the Hessian matrix as a kHighsHessianFormat
constant. This must be kHighsHessianFormatTriangular
.
@param start The Hessian matrix is provided to HiGHS as the upper
triangular component in compressed sparse column form. The
sparse matrix consists of three arrays, start
, index
,
and value
. start
is an array of length [num_col]
containing the starting index of each column in index
.
@param index An array of length [num_nz] with indices of matrix entries.
@param value An array of length [num_nz] with values of matrix entries.
@returns A kHighsStatus
constant indicating whether the call succeeded.