pub unsafe extern "C" fn SCIPgetVarClosestVub(
scip: *mut SCIP,
var: *mut SCIP_VAR,
sol: *mut SCIP_SOL,
closestvub: *mut f64,
closestvubidx: *mut c_int,
) -> SCIP_RETCODEExpand description
returns solution value and index of variable upper bound that is closest to the variable’s value in the given primal solution; or current LP solution if no primal solution is given; returns an index of -1 if no variable upper bound is available
@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