Skip to content

Add the Exact optimization mode - #760

Merged
fontanf merged 1 commit into
masterfrom
optimization-mode-exact
Oct 31, 2026
Merged

fontanf merged 1 commit into
masterfrom
optimization-mode-exact

Conversation

@fontanf

@fontanf fontanf commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

Add a new optimization mode, Exact (--optimization-mode exact), similar to Anytime but aimed at proving optimality. It is mainly meant for research purposes.

Changes

  • Add OptimizationMode::Exact (parsing, printing, Python binding, documentation in doc/optimization_modes.rst).
  • Every check on OptimizationMode::Anytime now also treats Exact as anytime: growing queue sizes, no not_anytime_* limits, no post-processing, multi-threaded.
  • benders_decomposition: in Exact mode, the master problem and the subproblems (including the selection_feasibility checks used to shrink no-good cuts) are solved in Exact mode.
  • benders_decomposition_contiguity: in Exact mode, the master problem is solved in Exact mode.
  • Rectangle column generation: when optimize runs in Exact mode, the PricingType::Dual subproblems are solved in Exact mode.
  • Rectangle automatic algorithm selection: in Exact mode, for instances with a single bin, benders_decomposition is also enabled for the Knapsack objective, and benders_decomposition_contiguity for the Feasibility objective. Explicitly selected algorithms are not overridden.

Not changed

  • The 1D knapsack subproblems of the bar relaxation still run in NotAnytime mode.

Tests

All unit tests pass locally.

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
fontanf force-pushed the optimization-mode-exact branch from 814d6a9 to f2b558a Compare October 30, 2026 22:53
@fontanf
fontanf merged commit 4348be2 into master Oct 31, 2026
16 checks passed
@fontanf
fontanf deleted the optimization-mode-exact branch October 31, 2026 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant