Skip to content

Various small fixes#431

Merged
fontanf merged 3 commits into
masterfrom
rectangleguillotine-max2cut-cli
Jul 4, 2026
Merged

Various small fixes#431
fontanf merged 3 commits into
masterfrom
rectangleguillotine-max2cut-cli

Conversation

@fontanf

@fontanf fontanf commented Jul 4, 2026

Copy link
Copy Markdown
Owner

No description provided.

fontanf added 3 commits July 4, 2026 10:56
InstanceBuilder::set_maximum_distance_2_cuts existed (and the CSV parameters
loader already recognized max2cut/max2Cut/maximum_distance_2_cuts) but
main.cpp never wired a --max2cut/--maximum-distance-2-cuts flag to it,
unlike its min2cut counterpart, so the parameter was unreachable from the
command line.
…rameters

Replace the plain automatic_stop bool with an optimization_mode field,
matching every other OptimizeParameters-family struct in the codebase.
optimize_column_generation_strips now passes the outer optimization_mode
straight through instead of first collapsing it into a bool. The one place
that still needs a plain bool (the external
columngenerationsolver::LimitedDiscrepancySearchParameters) derives it from
optimization_mode != Anytime. The recursive pricing sub-call in
generate_lower_stage_patterns now explicitly requests
NotAnytimeSequential (an internal sub-step, not a top-level search) instead
of unconditionally setting automatic_stop = true.
In print_header(), the OpenDimensionX/OpenDimensionY cases paired the
single-letter "X"/"Y" headers with a 5-dash underline ("-----") instead of
a single dash, unlike every other column where the underline length
matches its header text. Affects rectangleguillotine, rectangle,
irregular and boxstacks (box already had it right; onedimensional doesn't
have this objective).
@fontanf fontanf merged commit 416f2ce into master Jul 4, 2026
3 checks passed
@fontanf fontanf deleted the rectangleguillotine-max2cut-cli branch July 4, 2026 18:48
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