SCIPconsAddCoef

Function SCIPconsAddCoef 

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

adds the given variable to the input constraint. If the constraint is setppc or logicor the value is ignored. If the constraint is knapsack, then the value is converted to an int. A warning is passed if the SCIP_Real is not an integer. TODO: Allow val to be a pointer.