Files
OpenNest/OpenNest.Engine/NestingEngines/Irregular
ajandClaude Opus 5.5 2df94372a3 feat(irregular): pack each sheet's large parts first in large-first variants
Irregular picks each sheet's stock by look-ahead cost, which favors the
densest sheet, and a sheet of small parts packs densest. On a job mixing
long bars with small parts it spent the first sheets on the small parts
and left the bars six to a small sheet: 12 sheets on a real job, so
Default kept Rectangles' 7-sheet box layout (55,594 net).

Right after the strategy variants, Irregular now decodes them again with
the large types ranked first on every sheet (the frontier packer's group
ranks), so the small parts take the large parts' gaps. Types split as
Rectangles splits them, at drops in minimum box area to half or less,
the three widest tried; a split that priority already orders is skipped.
The pass runs on a work meter of its own and prepares no Lattice blocks
(the catalog is frozen), so the grouped and banded variants after it run
as without it and a job it does not improve keeps its layout. That job
now reports 8 sheets at 54,144 about 100 s into the solve and ends at
53,828.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 14:52:49 -05:00
..