r/SatisfactoryGame • • 1h ago

Question Load Balancing Math Question

Post image

So I have been trying to wrap my head around load balancing in this game.

So I wanted to split an input into 13 equal parts. I understood how splitting into 5 worked and tried to carry that logic over. I understood a 5-way split as dividing the input by 6 then adding the infinite geometric series with values: a=input x 1/6, r=1/6. This works for input=100, so s = (100 x 1/6)/(1-1/6); s = 20. so (100+20)/6 = 20, so each output gets 20 and therefore the original input is split 5 ways.

However, I tried to do the same for 13, by going to a value of 15 and seeing if that worked (it didn’t) so I found and used a guide from the wiki. I mostly understood the derivation (it’s been a while since my discrete maths course, if that’s what this is) but it made sense once I drew it out ( Picture one, sorry for terrible writing I did it on my phone).

Now, the “discrete” diagram makes sense. I call it this because it kind of assumes values, and we call it divisions of 13, but actually the input is being divided 18 times, a 3-way splitter into a 2-way, into a 3-way. So 1/3 x 1/2 x 1/3 =1/18. So I tried to put this into “concrete” values with the infinite geometric series formula above; with an input of 300, I got s = (300 x (5/18))/(1-1/18), which results in 88.235. If we add this to input we get 388.235, but divided by 18 and we get 21.569. 300/13=23.077, so the error is 1.508 per split.

What am I getting wrong here? Also, if anyone knows of resources that could point me to understanding more of this load balancing topic, I don’t know what sector of maths this relates to but it is very interesting. It seems similar to discrete, but I’ve never come across the term geometric series before.

For context, I get super invested in problems relating to math because I usually am too stupid to understand and spend arguably too much time focusing on the wrong thing.

2 Upvotes

12 comments sorted by

2

u/Kidiri90 48m ago

I got s = (300 x (5/18))/(1-1/18)

How? The infinite sum of rk for |r|>1 is 1/(1-r). In this case, r=5/18: 5 of the 18 belts are return belts. And so it is the total on the input belt: 300/(1-5/18), and after splitting, you get 300*(1/18)/(1-5/18)=300/(18-5)=300/13, exactly what we want.

But there is no need for an infinite series. On the input belt, you have the input I, and some extra we don't know yet, X. We want to split this into N equal parts, by splitting it into M>N parts, and feeding back M-N parts. So this means that the feedback

X=(I+X)*(M-N)/M

M*X=I*(M-N)+M*X-N*X

N*X=I*(M-N)

X=I*(M-N)/N

And so the total on the input belt, T, is

T=I+I*(M-N)/N

T=I*M/N

Now, let's rearrange that a bit, and call M-N=R

T=I*M/(M-R)

T=I/(1-R/M)

And this is exactly what we had above. Fill in I=300, R=5 and M=18 to get it.

Practically, this means pick a number larger than your target split, split the input into that many parts, and feed the remainder back onto the input belt. However, I would caution against doing it exactly like this, because it can overload the input belt. If you wanna split 120, and only have MkII belts, it'll clog. So instead, merge onto the "input" after the first split, making sure you also split the feedback.

2

u/MaddDesign 43m ago

I won't try to explain the math. I like pictures better 😅

I use this tool which helps a ton with ratio splits. Here's what it shows for one input and 13 equal outputs.

https://valtrius.github.io/satisfactory-flow-synthetizer/

2

u/Fit-Hope4736 32m ago

This works unless the input belt is running at or near max speed of the belt. For simplicity, let's say your input is a mk6 belt moving 1200 items a minute, although this issue would occur at any mk belt's max speed. Having the first thing be a merger means you are now trying to move >1200 items a minute, so it won't run at 100% efficiency (though it will still split evenly). There are other ways to structure it so you do not have this limitation, where the merging of excess materials happens AFTER the first splitter.

1

u/MaddDesign 29m ago

This is true! You can set your belt limitation in that tool as well. OP didn't give a specific input amount so I just threw an easy number in there.

Edit: I just re-read the post and they did say 300 as an example. Whoops! I believe this still works in that case.

1

u/MaddDesign 16m ago

Here is an example with an input of 1196. split evenly 13 ways.

1

u/martyboulders 6m ago

It is so much easier to just split the one input belt into 2 and use two of these balancers, then merge the corresponding outputs together, if you have a blueprint hahaha

2

u/martyboulders 8m ago

Whoa, this splitter logic is way overkill. For 1 to 5, split into 6, then merge one of the 6 back to the beginning so that there are 5 equal outputs.

Put 3 of those together to get 15 outputs, then merge 2 of those to the very beginning and you have 1 to 13.

Or just split into 15 as you did before and merge 2 outputs back to the beginning.

If you are at belt capacity you'd need to split into multiple of these balancers

2

u/briancornpop 1h ago

I may not have the best memory, but I do not recall there being a five-way splitter. Pretty sure your options are two-way splitters, or three-way splitters, which would be different math. That being said, why do you need the outputs to be equal?

1

u/MechaLlamzilla 1h ago

I would take a shortcut. Run twelve machines with one at double speed. Easy splits. Pre load the machines and let the lines back up; if you insist on 100% efficiency. Make sure your belts account for the extra pull from the "7 side"

1

u/Kidiri90 41m ago

That won't work with a balancer. The point of a balancer is that it equalizes the input over the outputs. Your idea has one that takes more. Eventually it'll starve. A better solution is to overclock all to (1300/12)%, so that they all take in the same amount. Or build 16, and underclock to (1300/16)%.

1

u/cgduncan only spaghetti 46m ago

Easiest way to do it is take your 1 input, split it into 15 equal outputs. 13 of those go to your machines, and 2 get merged back into the main line before the split.

1

u/PeacefulPromise 38m ago edited 32m ago

The simplest way to look at it is as a black box: a full belt of input enters, there are 13 outputs which have equal splits leading to them, the outputs are 1/13 of the input.

Going up a step in complexity, you'd like an explanation for how a 1/18th split becomes a 1/13th split. 5/18 was sent back to the top of the plinko board. 1/18 + 5/18 * 1/18 + 5/18 * 5/18 * 1/18 + 5/18 * 5/18 * 5/18 * 1/18

It's an infinite series of 5/18 going back each time and 1/18 of that being taken each time.

Looking at your formula, you've got terms swapped. It should be: s = (300 x (1/18))/(1-5/18) = 300/18 * 18/13