Skip to content

boxstacks: report the statistics of the algorithms with the reduction - #626

Merged
fontanf merged 1 commit into
masterfrom
boxstacks-reduction-statistics
Oct 2, 2026
Merged

fontanf merged 1 commit into
masterfrom
boxstacks-reduction-statistics

Conversation

@fontanf

@fontanf fontanf commented Oct 2, 2026

Copy link
Copy Markdown
Owner

Problem

With the instance reduction, which is on by default, optimize solves the reduced instance recursively. It then only forwarded that run's solutions and bounds to the returned output. The algorithm statistics stayed at their initial values (0, or -1 for sequential_onedimensional_rectangle_number_of_items and sequential_onedimensional_rectangle_profit). Those are the calls, perfect/good counts, times and number of items of the sequential onedimensional rectangle and tree search algorithms.

Fix

Copy the statistics from the output of the reduced instance.

Testing

  • New test_statistics in python/tests/test_boxstacks.py, with and without the reduction.
  • C++ boxstacks unit tests: 23 passed. Python tests: 351 passed, 13 skipped, 1 xfailed.

With the instance reduction (on by default), 'optimize' solves the
reduced instance recursively and only forwarded its solutions and
bounds: the statistics of the algorithms (calls, times, number of items
of the sequential onedimensional rectangle and tree search algorithms)
stayed at their initial values in the returned output.

Copy them from the output of the reduced instance.
@fontanf
fontanf merged commit 94020d1 into master Oct 2, 2026
11 checks passed
@fontanf
fontanf deleted the boxstacks-reduction-statistics branch October 2, 2026 22:21
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