SCIPsetRelaxSolVals

Function SCIPsetRelaxSolVals 

Source
pub unsafe extern "C" fn SCIPsetRelaxSolVals(
    scip: *mut SCIP,
    relax: *mut SCIP_RELAX,
    nvars: c_int,
    vars: *mut *mut SCIP_VAR,
    vals: *mut f64,
    includeslp: c_uint,
) -> SCIP_RETCODE
Expand description

sets the values of the given variables in the global relaxation solution and informs SCIP about the validity and whether the solution can be enforced via linear cuts; this solution can be filled by the relaxation handlers and can be used by heuristics and for separation; the solution is automatically cleared, s.t. all other variables get value 0.0

@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_PRESOLVED - \ref SCIP_STAGE_SOLVING