SCIPchgCoefExactLinear

Function SCIPchgCoefExactLinear 

Source
pub unsafe extern "C" fn SCIPchgCoefExactLinear(
    scip: *mut SCIP,
    cons: *mut SCIP_CONS,
    var: *mut SCIP_VAR,
    val: *mut SCIP_RATIONAL,
) -> SCIP_RETCODE
Expand description

changes coefficient of variable in linear constraint; deletes the variable if coefficient is zero; adds variable if not yet contained in the constraint

@note This method may only be called during problem creation stage for an original constraint and variable.

@note This method requires linear time to search for occurences of the variable in the constraint data.