Problem -
A particular item comes in 2 different package sizes , Both packages are able to be broken down by equivalent parts ,
ie 350 piece package1 , 250 piece package2 and can be broken into 50 part breaks ..
assume that I have an equal number of package1 and package2 , I want to be able to distribute these packages as evenly as possible and as full packages where possible .. The qty required will always be a multiple of the 50 part break ..
now above is an example .. package 1 may be 320 may be 240 and break may be 80 ...
I have managed to work out something that works for when the difference in package sizes is only one part break , but am having trouble with larger (part break) multiple differences.
ie 320 240
qty required packages1 packages2
480 0 2
560 1 1
640 2 0
720 0 3
800 1 2
880 2 1
960 3 0
1040 1 3
1120 2 2
1200 3 1
1280 1 4
1360 2 3

MENU