SCIPchgVarUbNode

Function SCIPchgVarUbNode 

Source
pub unsafe extern "C" fn SCIPchgVarUbNode(
    scip: *mut SCIP,
    node: *mut SCIP_NODE,
    var: *mut SCIP_VAR,
    newbound: f64,
) -> SCIP_RETCODE
Expand description

changes upper bound of variable in the given node; if possible, adjust bound to integral value; doesn’t store any inference information in the bound change, such that in conflict analysis, this change is treated like a branching decision

@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.

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