diff --git a/src/scip/presol_implint.c b/src/scip/presol_implint.c index 5fbda0ceef..e3547c25a5 100644 --- a/src/scip/presol_implint.c +++ b/src/scip/presol_implint.c @@ -724,6 +724,20 @@ SCIP_RETCODE findImpliedIntegers( * Callback methods of presolver */ +/** copy method for presolver plugins (called when SCIP copies plugins) */ +static +SCIP_DECL_PRESOLCOPY(presolCopyImplint) +{ /*lint --e{715}*/ + assert(scip != NULL); + assert(presol != NULL); + assert(strcmp(SCIPpresolGetName(presol), PRESOL_NAME) == 0); + + /* call inclusion method of presolver */ + SCIP_CALL( SCIPincludePresolImplint(scip) ); + + return SCIP_OKAY; +} + /** destructor of presolver to free user data (called when SCIP is exiting) */ static SCIP_DECL_PRESOLFREE(presolFreeImplint) @@ -855,6 +869,7 @@ SCIP_RETCODE SCIPincludePresolImplint( assert(presol != NULL); /* set non fundamental callbacks via setter functions */ + SCIP_CALL( SCIPsetPresolCopy(scip, presol, presolCopyImplint) ); SCIP_CALL( SCIPsetPresolFree(scip, presol, presolFreeImplint) ); SCIP_CALL( SCIPaddRealParam(scip, diff --git a/tests/src/scip/copy.c b/tests/src/scip/copy.c index c3f4283b83..ac200f4fb0 100644 --- a/tests/src/scip/copy.c +++ b/tests/src/scip/copy.c @@ -43,7 +43,6 @@ const char* const missing[] = "table", "compression", "solvingphases", - "presolving/implint", "propagating/symmetry" }; const int nmissing = sizeof(missing) / sizeof(missing[0]);