SCIPaddVarsToRowSameCoef

Function SCIPaddVarsToRowSameCoef 

Source
pub unsafe extern "C" fn SCIPaddVarsToRowSameCoef(
    scip: *mut SCIP,
    row: *mut SCIP_ROW,
    nvars: c_int,
    vars: *mut *mut SCIP_VAR,
    val: f64,
) -> SCIP_RETCODE
Expand description

resolves variables to columns and adds them with the same single coefficient to the row; this method caches the row extensions and flushes them afterwards to gain better performance

@return \ref SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See \ref SCIP_Retcode “SCIP_RETCODE” for a complete list of error codes.

@attention If the absolute value of val is below the SCIP epsilon tolerance, the variables will not added.

@pre this method can be called in one of the following stages of the SCIP solving process: - \ref SCIP_STAGE_SOLVING