SCIPsetMessagehdlr

Function SCIPsetMessagehdlr 

Source
pub unsafe extern "C" fn SCIPsetMessagehdlr(
    scip: *mut SCIP,
    messagehdlr: *mut SCIP_MESSAGEHDLR,
) -> SCIP_RETCODE
Expand description

installs the given message handler, such that all messages are passed to this handler. A messages handler can be created via SCIPmessagehdlrCreate().

@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 in one of the following stages of the SCIP solving process: - \ref SCIP_STAGE_INIT - \ref SCIP_STAGE_PROBLEM

@note The currently installed messages handler gets freed if this SCIP instance is its last user (w.r.t. capture/release).