Solving Chip Stacking Problems with Lagrange Multipliers

Click For Summary
SUMMARY

The discussion focuses on solving chip stacking problems using Lagrange Multipliers to minimize the variance in stack heights. The objective is to arrange chips of varying thickness into N stacks such that the sum of the squares of the differences between actual and nominal stack heights is minimized. The nominal height is calculated as the total thickness of all chips divided by the number of stacks. Participants suggest that while a straightforward formula may not exist, combinatorial techniques could provide effective solutions.

PREREQUISITES
  • Understanding of Lagrange Multipliers
  • Familiarity with optimization techniques
  • Basic knowledge of combinatorial methods
  • Concept of variance in statistical analysis
NEXT STEPS
  • Study Lagrange Multipliers in depth
  • Research combinatorial optimization techniques
  • Explore variance minimization strategies
  • Learn about the Simplex method for linear programming
USEFUL FOR

Mathematicians, operations researchers, and anyone involved in optimization problems, particularly in resource allocation and height balancing scenarios.

cjSlominski
Messages
1
Reaction score
0
My math is a little rusty and I want someone to identify the category of problem (Lagrange Multipliers, Simplex method, ...) I have, so that I can read up on the topic and familiarize myself with the technique.

To make the problem simple, let's say I have some number of chips of varying thickness. I want to place these chips in some number of stacks so that the stacks are as close as possible to being the same height. How do I do that?

I'll define "close as possible" as the sum of the squares of the difference between actual stack heights and the nominal stack height is minimized. Note the nominal stack height is the total thickness of all chips divided by the number of stacks.

Thanks,
Chris
 
Physics news on Phys.org
Sounds awful.
Suppose M is the number of chips, and N the number of stacks you want.
Let [itex]S_{N,i}[/itex] be a set of disjoint subsets of your chips, so that each chip is member of one such subset. i indexes the S-sets.
To each [itex]S_{N,i}[/itex] you may assign a number [itex]L_{N,i}[/itex] which measures how close the stacks are in height.

Thus, you are to compare the [itex]L_{N,i}[/itex] from all [itex]S_{N,i}[/itex], and find the least one.

I'm not sure there will exist a simple formula for this.

Perhaps there exists some clever combinatorial technique to do this effectively regardless of chip thicknesses, but I don't know about it.
 
Last edited:

Similar threads

  • · Replies 2 ·
Replies
2
Views
1K
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
5
Views
2K
Replies
7
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 18 ·
Replies
18
Views
4K