Factorio inspired math problem: belts and splitters

Post all other topics which do not belong to any other category.
Post Reply
King Mir
Burner Inserter
Burner Inserter
Posts: 6
Joined: Sun Aug 11, 2019 2:53 am
Contact:

Factorio inspired math problem: belts and splitters

Post by King Mir »

Does anyone know an algorithm or for finding the output of a belt after a arbitrary network of belt splitters?

Specifically:
Given
1) some number of input belts, each with some constant number resources coming in.
2) some network of belts and splitters, including splitters feeding back into themselves.
3) some number of output belts
4) no maximum belt throughput (unless this makes the math harder instead of easier).
5) single lane belts

How do I calculate the output rate of every output belt?

This is a graph theory question, but I don't know the right search terms to look for an answer.

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Factorio inspired math problem: belts and splitters

Post by DaveMcW »

King Mir wrote:
Mon May 25, 2020 3:26 am
2) some network of belts and splitters, including splitters feeding back into themselves.
This problem is called Markov chain.

There are many ways to solve it, here is a Javascript solution: https://kilin.clas.kitasato-u.ac.jp/sof ... arkov.html

King Mir
Burner Inserter
Burner Inserter
Posts: 6
Joined: Sun Aug 11, 2019 2:53 am
Contact:

Re: Factorio inspired math problem: belts and splitters

Post by King Mir »

Yep, that's exactly the search term I'm looking for. Thanks for the prompt response! And I thought asking here was a long-shot.

starlinvf
Fast Inserter
Fast Inserter
Posts: 145
Joined: Sat Dec 14, 2019 6:28 pm
Contact:

Re: Factorio inspired math problem: belts and splitters?

Post by starlinvf »

Read up on Belt Balancers, as it deals with pretty much all the math you're concerned with.

https://wiki.factorio.com/Balancer_mechanics
https://en.wikipedia.org/wiki/Clos_netw ... n_.3D_2.29

(Fractal)
viewtopic.php?p=343062#p343062

( 63462 )
https://docs.google.com/document/d/1FsT ... VDioM/edit

[moderated by boskid. clone topic from imposter with the same first post was merged into this topic and first post of imposter was removed. This was the only remaining post]

Post Reply

Return to “General discussion”