Repository navigation
Add the Exact optimization mode - #760
Merged
Merged
Conversation
The Exact mode is similar to the Anytime mode but aimed at proving optimality. Every check on the Anytime mode now also treats the Exact mode as anytime. In Exact mode: - benders_decomposition solves its master problem and its subproblems in Exact mode - benders_decomposition_contiguity solves its master problem in Exact mode - rectangle column generation solves the Dual pricing subproblems in Exact mode - for rectangle instances with a single bin, the automatic algorithm selection also enables benders_decomposition for the Knapsack objective and benders_decomposition_contiguity for the Feasibility objective
fontanf
force-pushed
the
optimization-mode-exact
branch
from
October 30, 2026 22:53
814d6a9 to
f2b558a
Compare
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.
Add a new optimization mode,
Exact(--optimization-mode exact), similar toAnytimebut aimed at proving optimality. It is mainly meant for research purposes.Changes
OptimizationMode::Exact(parsing, printing, Python binding, documentation indoc/optimization_modes.rst).OptimizationMode::Anytimenow also treatsExactas anytime: growing queue sizes, nonot_anytime_*limits, no post-processing, multi-threaded.benders_decomposition: inExactmode, the master problem and the subproblems (including theselection_feasibilitychecks used to shrink no-good cuts) are solved inExactmode.benders_decomposition_contiguity: inExactmode, the master problem is solved inExactmode.optimizeruns inExactmode, thePricingType::Dualsubproblems are solved inExactmode.Exactmode, for instances with a single bin,benders_decompositionis also enabled for theKnapsackobjective, andbenders_decomposition_contiguityfor theFeasibilityobjective. Explicitly selected algorithms are not overridden.Not changed
NotAnytimemode.Tests
All unit tests pass locally.