Skip to content

Increase packing iteration limit#174

Merged
imrishabh18 merged 1 commit into
mainfrom
agent/fix-large-partition-iteration-budget
Jul 27, 2026
Merged

Increase packing iteration limit#174
imrishabh18 merged 1 commit into
mainfrom
agent/fix-large-partition-iteration-budget

Conversation

@imrishabh18

@imrishabh18 imrishabh18 commented Jul 26, 2026

Copy link
Copy Markdown
Member

Summary

  • increase Matchpack's default solver iteration limit from 100,000 to 200,000
  • apply the same limit to the nested PackSolver2
  • add a regression test for the 12×12 WLED chain

Why

The WLED circuit creates a large 146-component partition. Its layout is valid, but PackSolver2 needs more than 100,000 iterations to finish and previously failed with PackSolver2 ran out of iterations.

This PR keeps the existing packing strategy and simply gives the solver enough iterations to complete. The regression verifies that all 146 components are placed without overlaps.

Validation

  • bun test — 56 passed, 1 skipped
  • bun run build

@vercel

vercel Bot commented Jul 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
matchpack Ready Ready Preview, Comment Jul 27, 2026 12:48am

Request Review

@imrishabh18
imrishabh18 force-pushed the agent/fix-large-partition-iteration-budget branch from d178a77 to 91ee151 Compare July 26, 2026 17:55
@imrishabh18 imrishabh18 changed the title Fix iteration budget for large packing partitions Optimize point-to-point partition packing Jul 26, 2026
@imrishabh18
imrishabh18 marked this pull request as ready for review July 26, 2026 18:04
@imrishabh18
imrishabh18 requested a review from seveibar July 26, 2026 18:05

@seveibar seveibar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have you tried just increasing the iteration count? Changing pack strategies has a lot of implications for maintainability because we have to identify the strategy being used

@imrishabh18

Copy link
Copy Markdown
Member Author

have you tried just increasing the iteration count? Changing pack strategies has a lot of implications for maintainability because we have to identify the strategy being used

Cool, even that will work

@imrishabh18
imrishabh18 force-pushed the agent/fix-large-partition-iteration-budget branch from 91ee151 to c07adf1 Compare July 27, 2026 00:47
@imrishabh18 imrishabh18 changed the title Optimize point-to-point partition packing Increase packing iteration limit Jul 27, 2026
@imrishabh18
imrishabh18 merged commit db2b6b7 into main Jul 27, 2026
5 checks passed
@imrishabh18
imrishabh18 deleted the agent/fix-large-partition-iteration-budget branch July 27, 2026 00:49
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.

2 participants