Repository navigation
Prove infeasibility from the one-dimensional relaxation bound - #619
Merged
Merged
Conversation
'optimize_onedimensional_bound' solves the one-dimensional relaxation of the instance (item and bin areas, or volumes), but only copied its bounds back: when the relaxation was proven infeasible, e.g. when the area of the items exceeds the one of the bins, the instance wasn't. And it was only run for the 'BinPacking', 'Knapsack' and 'VariableSizedBinPacking' objectives. - Propagate the infeasibility of the relaxation. - Also run it for 'BinPackingWithLeftovers' and 'Feasibility', for which only the infeasibility is used (no bound). For rectangleguillotine, rectangle, box, boxstacks (where it is run within the box bounds) and irregular.
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.
Problem
optimize_onedimensional_boundsolves the one-dimensional relaxation of the instance: items and bins become their areas, or volumes. It only copied the relaxation's bounds back, though. When the relaxation was proven infeasible, the instance wasn't. For example, four 40x40 squares in one 100x60 bin (6400 > 6000) was not proven infeasible.It was also only run for the
BinPacking,KnapsackandVariableSizedBinPackingobjectives.BinPackingWithLeftoversandFeasibilityinstances can be infeasible in the same way.Five problem types had the same code: rectangleguillotine, rectangle, box, boxstacks (where the bound runs within the box bounds) and irregular.
Fix
is_proven_infeasible.BinPackingWithLeftoversandFeasibility. For these objectives only the infeasibility is used, since there's no bound to report.Testing
python/tests/test_infeasibility.py(40 tests). For each of the 5 problem types and the 4 objectives:master).