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
) -> HighsInt
Expand 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 An array of length [num_col] with the column costs. @param col_lower An array of length [num_col] with the column lower bounds. @param col_upper An array of length [num_col] with the column upper bounds. @param row_lower An array of length [num_row] with the row lower bounds. @param row_upper An 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 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 col_value An array of length [num_col], to be filled with the primal column solution. @param col_dual An array of length [num_col], to be filled with the dual column solution. @param row_value An array of length [num_row], to be filled with the primal row solution. @param row_dual An array of length [num_row], to be filled with the dual row solution. @param col_basis_status An array of length [num_col], to be filled with the basis status of the columns in the form of a kHighsBasisStatus constant. @param row_basis_status An array of length [num_row], to be filled with the basis status of the rows in the form of a kHighsBasisStatus constant. @param model_status The location in which to place the termination status of the model after the solve in the form of a kHighsModelStatus constant.

@returns A kHighsStatus constant indicating whether the call succeeded.