SCIPgetVarRedcost

Function SCIPgetVarRedcost 

Source
pub unsafe extern "C" fn SCIPgetVarRedcost(
    scip: *mut SCIP,
    var: *mut SCIP_VAR,
) -> f64
Expand description

returns the reduced costs of the variable in the current node’s LP relaxation; the current node has to have a feasible LP.

returns SCIP_INVALID if the variable is active but not in the current LP; returns 0 if the variable has been aggregated out or fixed in presolving.

@pre This method can only be called if @p scip is in stage \ref SCIP_STAGE_SOLVING

@note The return value of this method should be used carefully if the dual feasibility check was explictely disabled.