SCIPchgVarName

Function SCIPchgVarName 

Source
pub unsafe extern "C" fn SCIPchgVarName(
    scip: *mut SCIP,
    var: *mut SCIP_VAR,
    name: *const c_char,
) -> SCIP_RETCODE
Expand description

changes the name of a variable

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

@note to get the current name of a variable, use SCIPvarGetName() from pub_var.h