pub unsafe extern "C" fn SCIPcopyPlugins(
sourcescip: *mut SCIP,
targetscip: *mut SCIP,
copyreaders: c_uint,
copypricers: c_uint,
copyconshdlrs: c_uint,
copyconflicthdlrs: c_uint,
copypresolvers: c_uint,
copyrelaxators: c_uint,
copyseparators: c_uint,
copycutselectors: c_uint,
copypropagators: c_uint,
copyheuristics: c_uint,
copyeventhdlrs: c_uint,
copynodeselectors: c_uint,
copybranchrules: c_uint,
copyiisfinders: c_uint,
copydisplays: c_uint,
copydialogs: c_uint,
copytables: c_uint,
copyexprhdlrs: c_uint,
copynlpis: c_uint,
passmessagehdlr: c_uint,
valid: *mut c_uint,
) -> SCIP_RETCODEExpand description
copies plugins from sourcescip to targetscip; in case that a constraint handler which does not need constraints cannot be copied, valid will return FALSE. All plugins can declare that, if their copy process failed, the copied SCIP instance might not represent the same problem semantics as the original. Note that in this case dual reductions might be invalid.
@note In a multi thread case, you need to lock the copying procedure from outside with a mutex. Also, ‘passmessagehdlr’ should be set to FALSE.
@note Do not change the source SCIP environment during the copying process.
@note This method does not copy Benders’ plugins. To this end, the method SCIPcopyBenders() must be called separately.
@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 sourcescip is in one of the following stages: - \ref SCIP_STAGE_PROBLEM - \ref SCIP_STAGE_TRANSFORMED - \ref SCIP_STAGE_INITPRESOLVE - \ref SCIP_STAGE_PRESOLVING - \ref SCIP_STAGE_EXITPRESOLVE - \ref SCIP_STAGE_PRESOLVED - \ref SCIP_STAGE_INITSOLVE - \ref SCIP_STAGE_SOLVING - \ref SCIP_STAGE_SOLVED
@pre This method can be called if targetscip is in one of the following stages: - \ref SCIP_STAGE_INIT - \ref SCIP_STAGE_FREE
@post After calling this method targetscip reaches one of the following stages depending on if and when the solution process was interrupted: - \ref SCIP_STAGE_PROBLEM
@note sourcescip stage does not get changed
See \ref SCIP_Stage “SCIP_STAGE” for a complete list of all possible solving stages.