Demand Statistics

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

Post Reply
cmbatten97
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon Mar 11, 2024 5:09 pm
Contact:

Demand Statistics

Post by cmbatten97 »

TL;DR
New graph in production statistics that shows demand
What ?
I am currently running a rather large space exploration world so it has become almost impossible to manage supply and demand of all my intermediate products. Trying to use the production/consumption statistics isn't that useful as consumption will almost always match production when in steady state. I think a demand statistic that shows the theoretical consumption rate of all empty/working machines would be much more useful (not paused b/c output full machines).

As an example:

Lets say you have a setup per the following
-Producing 10 copper plates per second from furnaces.
-10 assemblers making copper wire each at a rate of 2 copper plates consumed per second and producing 4 copper wires per second (theoretical max of 20 plates consumed and 40 wires produced per second)
-Assuming nothing is bottlenecked the production/consumption statistics of copper plates will both be equal at 10 per second.
-Demand statistic would show 20 copper plates per second
Why ?
A much more useful statistic would be demand. Demand would show the assemblers need 20 copper plates per second while your production is only 10 per second, so you know you need to increase copper plate production. Having a demand statistic would make finding your bottle necks much easier in very large worlds as it would simply be where your difference in production and demand is the greatest.

I know some people might suggest using something like the rate calculator mod but that doesn't take into account paused machines. I think a demand statistic should NOT include machines that are paused due to full outputs as they have no demand.

Let me know what you all think.

Illiander42
Filter Inserter
Filter Inserter
Posts: 412
Joined: Mon Feb 05, 2018 10:01 am
Contact:

Re: Demand Statistics

Post by Illiander42 »

This would break on intentionally underfed assemblers.

Which happen all over the place.

(It's why the rate calculator mod isn't as useful as you'd think)

mmmPI
Smart Inserter
Smart Inserter
Posts: 2747
Joined: Mon Jun 20, 2016 6:10 pm
Contact:

Re: Demand Statistics

Post by mmmPI »

The question of output full machine is more complex because you could have the feeding inserter stopped by circuits sometimes, and the machine would be in "demand" despite player not willing to count that as demand regarding the purpose of the demand stat. Same regarding closed subfactory with no train coming to it because you don't need say modules or robots or walls at the moment. You could also have players stopping belts voluntarily. All those are example of underfed assembler that would be hard to detect for a useful demand stat.

For me the rate calculator is used to detect ratios locally, but i wouldn't trust aggregate data from the whole factory.

mrvn
Smart Inserter
Smart Inserter
Posts: 5709
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: Demand Statistics

Post by mrvn »

A graph for the difference of supply and demand would be useful.

I produce and consume ~10k iron plates per minute so the graphs look pretty much identical. But do I produce 10.1k iron plates per minute and consume only 9.9k iron plates per minute? Or the other way around? There is no way to tell.

A graph showing the difference would show values +/-100 instead of 0 to 11k making changes much more noticable.

Koub
Global Moderator
Global Moderator
Posts: 7204
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: Demand Statistics

Post by Koub »

mrvn wrote:
Tue Mar 12, 2024 5:17 pm
A graph for the difference of supply and demand would be useful.

I produce and consume ~10k iron plates per minute so the graphs look pretty much identical. But do I produce 10.1k iron plates per minute and consume only 9.9k iron plates per minute? Or the other way around? There is no way to tell.

A graph showing the difference would show values +/-100 instead of 0 to 11k making changes much more noticable.
Consumption and demand are not exactly the same thing. It's easy to display consumption, whether in an absolute graph (like those we have to day), or in a relative-to-production graph (excess/deficit production).

Consumption would be the same as demand as long as there's enough buffering. As soon as the intermediate buffers would have depleted enough, consumption and demand would diverge, with, at the extreme, consumption limited by production (+ the eventual bottlenecks), but still strictly measurable (what's actually consumed).

On the opposite, let's imagine a fully beaconed AM3 with speed modules everywhere possible producing basic (yellow) belts.
Let's imagine this Assembling machine is fed with one yellow belt of iron plates, and one yellow belt of iron gear wheels by a fully upgraded stack inserter each.
What should be the demand ?

A) The maximum theoretical capacity of the fully boosted Assembling machine, ignoring there is no way it can be fed quick enough ?
B) What the Assembling Machine can consume limited by the inserters' throughput, ignoring the belts' t limited throughput ?
C) The maximum the Assembling machine could consume given this specific setup ? (limited by the yellow belts' throughput) ?

I'd be totally OK with a graph showing the differential between production and consumption, but I can't see how we could have a graph showing the actual demand AND that graph making consensus on what it shows.
Koub - Please consider English is not my native language.

Illiander42
Filter Inserter
Filter Inserter
Posts: 412
Joined: Mon Feb 05, 2018 10:01 am
Contact:

Re: Demand Statistics

Post by Illiander42 »

Koub wrote:
Tue Mar 12, 2024 5:59 pm
On the opposite, let's imagine a fully beaconed AM3 with speed modules everywhere possible producing basic (yellow) belts.
Let's imagine this Assembling machine is fed with one yellow belt of iron plates, and one yellow belt of iron gear wheels by a fully upgraded stack inserter each.
Switch the belt feed to a single circuit-controlled yellow sushi lane of gears and plates and make things even more complicated.

And because circuits are Turing-Complete proving that that setup won't deadlock is impossible in the general case, never mind finding it's throughput. (The Halting Problem says "Hi!")

And then I remembered that Factorio belts are Turing Complete. So that blows up the whole idea.

robot256
Filter Inserter
Filter Inserter
Posts: 596
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: Demand Statistics

Post by robot256 »

cmbatten97 wrote:
Mon Mar 11, 2024 5:39 pm
I am currently running a rather large space exploration world so it has become almost impossible to manage supply and demand of all my intermediate products. Trying to use the production/consumption statistics isn't that useful as consumption will almost always match production when in steady state. I think a demand statistic that shows the theoretical consumption rate of all empty/working machines would be much more useful (not paused b/c output full machines).
How would a global statistic really help if your production is spread across multiple surfaces? There could be a surplus on one and a shortage on another. The only actionable information is exactly which belts are empty.

It's hard enough making the electricity demand graph relevant. For example, when you have a power outage and all your roboports deplete their internal buffers, they all appear as a 4MW demand because that's what they recharge their buffers at. It doesn't mean you actually need that much power continuously once the grid is restored.

So it goes back to designing the information you collect based on what actions you can take. You could put a loudspeaker on every bus belt to alert when it's not saturated. I don't find it cumbersome at all to scan backwards through a production chain to find the bottleneck, but then again I make hideous spaghetti bases and enjoy it.

mrvn
Smart Inserter
Smart Inserter
Posts: 5709
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: Demand Statistics

Post by mrvn »

Koub wrote:
Tue Mar 12, 2024 5:59 pm
mrvn wrote:
Tue Mar 12, 2024 5:17 pm
A graph for the difference of supply and demand would be useful.

I produce and consume ~10k iron plates per minute so the graphs look pretty much identical. But do I produce 10.1k iron plates per minute and consume only 9.9k iron plates per minute? Or the other way around? There is no way to tell.

A graph showing the difference would show values +/-100 instead of 0 to 11k making changes much more noticable.
Consumption and demand are not exactly the same thing. It's easy to display consumption, whether in an absolute graph (like those we have to day), or in a relative-to-production graph (excess/deficit production).
I mend production and consumption across the board, since that's what the game can currently graph.

To see if demand exceeds production it might be nice to get a graph for stored items.

Post Reply

Return to “Ideas and Suggestions”