Function SCIPchgVarUbLazy

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

changes lazy upper bound of the variable, this is only possible if the variable is not in the LP yet

Lazy bounds are bounds that are already enforced by constraints and the objective function. Setting a lazy upper bound has the consequence that for variables which upper bound equals the lazy upper bound, the upper bound does not need to be passed on to the LP solver. This is especially useful in a column generation (branch-and-price) setting.

@attention If the variable has a global upper bound above lazyub, then the global upper bound is tightened to lazyub by a call to SCIPchgVarUbGlobal().

@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 be called if @p scip is in one of the following stages: - \ref SCIP_STAGE_PROBLEM - \ref SCIP_STAGE_TRANSFORMING - \ref SCIP_STAGE_TRANSFORMED - \ref SCIP_STAGE_PRESOLVING - \ref SCIP_STAGE_SOLVING