SCIPincludeReader

Function SCIPincludeReader 

Source
pub unsafe extern "C" fn SCIPincludeReader(
    scip: *mut SCIP,
    name: *const c_char,
    desc: *const c_char,
    extension: *const c_char,
    readercopy: Option<unsafe extern "C" fn(scip: *mut SCIP, reader: *mut SCIP_READER) -> SCIP_RETCODE>,
    readerfree: Option<unsafe extern "C" fn(scip: *mut SCIP, reader: *mut SCIP_READER) -> SCIP_RETCODE>,
    readerread: Option<unsafe extern "C" fn(scip: *mut SCIP, reader: *mut SCIP_READER, filename: *const c_char, result: *mut SCIP_RESULT) -> SCIP_RETCODE>,
    readerwrite: Option<unsafe extern "C" fn(scip: *mut SCIP, reader: *mut SCIP_READER, file: *mut FILE, filename: *const c_char, name: *const c_char, probdata: *mut SCIP_PROBDATA, transformed: c_uint, objsense: SCIP_OBJSENSE, objoffset: f64, objscale: f64, objoffsetexact: *mut SCIP_RATIONAL, objscaleexact: *mut SCIP_RATIONAL, vars: *mut *mut SCIP_VAR, nvars: c_int, nbinvars: c_int, nintvars: c_int, nimplvars: c_int, ncontvars: c_int, fixedvars: *mut *mut SCIP_VAR, nfixedvars: c_int, startnvars: c_int, conss: *mut *mut SCIP_CONS, nconss: c_int, maxnconss: c_int, startnconss: c_int, genericnames: c_uint, result: *mut SCIP_RESULT) -> SCIP_RETCODE>,
    readerdata: *mut SCIP_READERDATA,
) -> SCIP_RETCODE
Expand description

creates a reader and includes it in SCIP

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

@note method has all reader callbacks as arguments and is thus changed every time a new callback is added in future releases; consider using SCIPincludeReaderBasic() and setter functions if you seek for a method which is less likely to change in future releases