KirkMcDonald / kirkmcdonald.github.io

Simple web-based calculator for the game Factorio.
Apache License 2.0
539 stars 148 forks source link

Feature Request: Minimum number of machines needed for all being whole numbers #219

Closed saxbophone closed 2 years ago

saxbophone commented 3 years ago

The Factorio Wiki gives examples for ideal ratios (where 100% of each machine's output at each stage is in use by the next) for manufacturing many items so that the ratios between all machines are whole numbers.

It would be nice to be able to request for this app that rather than a set number of factories or item throughput, instead the "ideal" whole-numbered ratio is provided in the diagram instead.

DRY411S commented 3 years ago

kirkcmandonnald is exact. Just round up.

saxbophone commented 3 years ago

I know that feature exists but that's not the same thing as what this issue requests, as rounding up would waste some machine capacity.

DRY411S commented 3 years ago

I guess it would waste some machine capacity, but then again, building the minimum number of whole number machines might mean that what those machines output is an over or under supply for the next thing in the Production chain. For example, try and find the minimum whole number of machines for blue chips (including chemical plants for plastic, sulphur, acid, and refineries). It will be a very large number of blue chip machines!

saxbophone commented 3 years ago

I don't think you're wrong with your analysis! I did think this would be a bit of a niche request. I think mathematically, it can certainly be done but perhaps the benefit in return is quite small...

DRY411S commented 3 years ago

I think Kirk McDonald would need to implement something similar to the 'What If' analysis tool in Microsoft Excel, and as you say it's a little niche. Personally, I don't see the value.

saxbophone commented 3 years ago

I think the value is "making the perfectly efficient factory", which is a little niche

DawidZwiewka commented 3 years ago

Once you add productivity modules it's nearly impossible to get whole numbers. For instance 1 green circuit machine requires ~3.12056737588652482270... electric funances producing iron plates :D I'm not talking about advanced products like space sience pack but one of the simpliest recipes :) The truth is that you can get whole numbers only if you are not using any productive modules in most cases and you will use ton of them in most cases :)

saxbophone commented 3 years ago

@DawidZwiewka that is useful insight, thank you