Repository navigation
Add heuristic plugin example - #1253
Open
Joao-Dionisio wants to merge 2 commits into
Open
Joao-Dionisio wants to merge 2 commits into
Joao-Dionisio wants to merge 2 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1253 +/- ##
=======================================
Coverage 58.12% 58.12%
=======================================
Files 27 27
Lines 5999 5999
=======================================
Hits 3487 3487
Misses 2512 2512 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Member
Author
|
The disjunction example suffers from the bug mentioned in #1240, so an eventual fix would need to be merged first. |
Joao-Dionisio
force-pushed
the
example-heur-lpt
branch
from
November 5, 2026 15:44
1642a61 to
fca83a4
Compare
…disjunction and cardinality constraints
Joao-Dionisio
force-pushed
the
example-heur-lpt
branch
from
November 5, 2026 16:09
4b32866 to
14ffb30
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds two examples of parallel machine scheduling with release dates (Pm|r_j|C_max):
heur_lpt.py: a big-M formulation warm-started by aHeurplugin that builds an LPT list schedule. The heuristic runs once before the root node and builds its solution withcreateOrigSol(), because presolving fixes some variables and setting conflicting values on a transformed solution fails. The heuristics tutorial now points to it.scheduling_logical.py: the same problem modelled with and/or/indicator, disjunction and cardinality constraints. On SCIP 10.1.0 and earlier the disjunction model reports a wrong optimum because of The strange behavior of the disjunction constraint #1240; a comment in the example says so and names the workaround. The fix is in SCIP'sfix-conssetlocal-validdepthbranch.This supersedes #1245 by @abb-omidi, whose scripts these are based on. @abb-omidi, would you mind taking a look, please?