Skip to main content

Highs_getFixedLp

Function Highs_getFixedLp 

Source
pub unsafe extern "C" fn Highs_getFixedLp(
    highs: *const c_void,
    a_format: HighsInt,
    num_col: *mut HighsInt,
    num_row: *mut HighsInt,
    num_nz: *mut HighsInt,
    sense: *mut HighsInt,
    offset: *mut f64,
    col_cost: *mut f64,
    col_lower: *mut f64,
    col_upper: *mut f64,
    row_lower: *mut f64,
    row_upper: *mut f64,
    a_start: *mut HighsInt,
    a_index: *mut HighsInt,
    a_value: *mut f64,
) -> HighsInt
Expand description

Get the LP corresponding to a MIP with non-continuous variables fixed at a MIP solution

The input arguments have the same meaning (in a different order) to those used in Highs_passModel.

Note that all arrays must be pre-allocated to the correct size before calling Highs_getModel. Use the following query methods to check the appropriate size:

  • Highs_getNumCol
  • Highs_getNumRow
  • Highs_getNumNz

@returns A kHighsStatus constant indicating whether the call succeeded.