Function highs_sys::Highs_lpCall
source · [−]pub unsafe extern "C" fn Highs_lpCall(
num_col: HighsInt,
num_row: HighsInt,
num_nz: HighsInt,
a_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,
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
) -> HighsIntExpand description
Formulate and solve a linear program using HiGHS.
@param num_col the number of columns
@param num_row the number of rows
@param num_nz the number of nonzeros in the constraint matrix
@param a_format the format of the constraint matrix as a
kHighsMatrixFormat constant
@param sense the optimization sense as a kHighsObjSense constant
@param offset the objective constant
@param col_cost array of length [num_col] with the column costs
@param col_lower array of length [num_col] with the column lower bounds
@param col_upper array of length [num_col] with the column upper bounds
@param row_lower array of length [num_row] with the row lower bounds
@param row_upper array of length [num_row] with the row upper 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 array of length [num_nz] with indices of matrix entries
@param a_value array of length [num_nz] with values of matrix entries
@param col_value array of length [num_col], filled with the primal
column solution
@param col_dual array of length [num_col], filled with the dual column
solution
@param row_value array of length [num_row], filled with the primal row
solution
@param row_dual array of length [num_row], filled with the dual row
solution
@param col_basis_status array of length [num_col], filled with the basis
status of the columns in the form of a
kHighsBasisStatus constant
@param row_basis_status array of length [num_row], filled with the basis
status of the rows in the form of a
kHighsBasisStatus constant
@param model_status termination status of the model after the solve in
the form of a kHighsModelStatus constant
@returns a kHighsStatus constant indicating whether the call succeeded