Skip to content

Commit

Permalink
Merge branch 'copy-implint-presolver' into 'master'
Browse files Browse the repository at this point in the history
Copy implint presolver

Closes #3789

See merge request integer/scip!3627
  • Loading branch information
svigerske committed Jan 2, 2025
2 parents 233bd23 + 1eea48f commit b140b9a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
15 changes: 15 additions & 0 deletions src/scip/presol_implint.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion tests/src/scip/copy.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ const char* const missing[] =
"table",
"compression",
"solvingphases",
"presolving/implint",
"propagating/symmetry"
};
const int nmissing = sizeof(missing) / sizeof(missing[0]);
Expand Down

0 comments on commit b140b9a

Please sign in to comment.