bearminmaxing
New Member
- Joined
- Sep 4, 2024
- Messages
- 6
- Office Version
- 365
- Platform
- Windows
I'm trying to automate a process I currently do very inaccurately - specifically I'm trying to optimize the number of parts and sheets used in printing. The closest approximations that I've been able to find names for are the Bin Packing Problem and the Knapsack Problem.
1 MASTER SHEET can hold 22 PNs. PNs on a single MASTER SHEET can have more than one instance on a MASTER, but PNs cannot be split across multiple MASTERs. Each PN has different quantities required. MASTER SHEETs can be printed as many times as required to produce required quantities of PNs.
For example, PNs A-1 has a required quantity of 24, A-4 has a required quantity of 141, and A-5 has a required quantity of 90. If these PNs are combined onto one MASTER with 2 instances of A-1, 12 instances of A-4, and 8 instances of A-5, the MASTER SHEET can be printed 12 times to achieve the required quantities with low numbers of OVERAGEs (respectively: 0, 3, 6).
My objective is to allocate PNs with varying quantities to MASTER SHEETs while creating the fewest number of MASTER SHEETs and fewest OVERAGEs (how many times each MASTER has to be printed are not limited and does not have to be optimized). Below I have an example of a set of PNs that I was provided and which I allocated using trial and error.
Is there a way for me to automate this process using Solver or a similar add-on? I've looked up solutions for the Bin Packing Problem and the Knapsack Problem but because my objective is slightly different from those problems, I can't find a way to make those solutions work correctly.
1 MASTER SHEET can hold 22 PNs. PNs on a single MASTER SHEET can have more than one instance on a MASTER, but PNs cannot be split across multiple MASTERs. Each PN has different quantities required. MASTER SHEETs can be printed as many times as required to produce required quantities of PNs.
For example, PNs A-1 has a required quantity of 24, A-4 has a required quantity of 141, and A-5 has a required quantity of 90. If these PNs are combined onto one MASTER with 2 instances of A-1, 12 instances of A-4, and 8 instances of A-5, the MASTER SHEET can be printed 12 times to achieve the required quantities with low numbers of OVERAGEs (respectively: 0, 3, 6).
My objective is to allocate PNs with varying quantities to MASTER SHEETs while creating the fewest number of MASTER SHEETs and fewest OVERAGEs (how many times each MASTER has to be printed are not limited and does not have to be optimized). Below I have an example of a set of PNs that I was provided and which I allocated using trial and error.
Is there a way for me to automate this process using Solver or a similar add-on? I've looked up solutions for the Bin Packing Problem and the Knapsack Problem but because my objective is slightly different from those problems, I can't find a way to make those solutions work correctly.
BPPSolution.xlsx | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
1 | PN | QTY | MASTER | QTY/MASTER | TIMES PRINTED | OVERAGE | |||
2 | A-1 | 24 | 1 | 2 | 12 | 0 | |||
3 | A-2 | 18 | 2 | 4 | 5 | 2 | |||
4 | A-3 | 30 | 2 | 6 | 5 | 0 | |||
5 | A-4 | 141 | 1 | 12 | 12 | 3 | |||
6 | A-5 | 90 | 1 | 8 | 12 | 6 | |||
7 | A-6 | 26 | 2 | 6 | 5 | 4 | |||
8 | A-7 | 720 | 3 | 22 | 33 | 6 | |||
9 | A-8 | 7 | 2 | 2 | 5 | 3 | |||
10 | A-9 | 18 | 2 | 4 | 5 | 2 | |||
11 | |||||||||
Sheet2 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
F2:F10 | F2 | =(E2*D2)-B2 |