Page 1 of 1

Calculation output with different speed modules?

Posted: Fri Aug 04, 2017 3:45 pm
by andyfth
Let's say:

I have 100 factories. Every factory has two speed modules (each +50%). How many factories do I need, if I replace it with two different speed modules (each +125%)?

I have 100 factories. Every factory has three speed modules (each +50%). How many factories do I need, if I replace it with three different speed modules (each +125%)?

I have 100 factories. Every factory has four speed modules (each +50%). How many factories do I need, if I replace it with four different speed modules (each +125%)?

Re: Calculation output with different speed modules?

Posted: Fri Aug 04, 2017 4:29 pm
by Frightning
This post does not make much sense in the context of the original game, are you playing with mods? As for how Speed modules work, their effects stack additively, so two speed module 3s would add +50% each for a total of +100% (meaning the machine is working at twice (2x) it's un-moduled speed). This also applies to its energy consumption: each module is giving +70% to energy consumption, so you would be spending +140% energy to run that machine (barring the drain cost, which is fixed and always there as long as the machine is connected to power). Note that energy consumption is tied to pollution generated, increasing energy consumption by a given % also increases pollution generated by the same % (over the base value). Productivity modules also have an explicit pollution modifier, which stacks multiplicatively with this effect (so the energy costs increase it, each additive from the base value, but then the pollution modifiers increase that subtotal by the given percentage to obtain actual pollution generated).

Re: Calculation output with different speed modules?

Posted: Fri Aug 04, 2017 6:04 pm
by andyfth
Yes, im playing with mods. Advanced speed modules. And Im well aware of side effects of speed modules.

What is a correct formula to compute mentioned scenarios?

Re: Calculation output with different speed modules?

Posted: Fri Aug 04, 2017 6:38 pm
by vanatteveldt
Speed modules are additive. So, a yellow assembler has crafting speed 1.25. With two modules of 50% each they will have speed 1.25 + .5 + .5 = 2.25. Replacing the modules with +125% will give crafting speed 1.25 + 1.25 + 1.25 = 3.75

So, 100 factories with 2x50% modules working on a 1/s recipe will be able to output 225 widgets, which can also be produced by 225 / 3.75 = 60 factories with 2x125% modules (since 2.25 / 3.75 = 0.6)

(note that due to the additive nature the effect will depend on the underlying crafting speed of the plant, though not on the recipe)

Re: Calculation output with different speed modules?

Posted: Sat Aug 05, 2017 12:37 am
by andyfth
vanatteveldt wrote:Speed modules are additive. So, a yellow assembler has crafting speed 1.25. With two modules of 50% each they will have speed 1.25 + .5 + .5 = 2.25. Replacing the modules with +125% will give crafting speed 1.25 + 1.25 + 1.25 = 3.75

So, 100 factories with 2x50% modules working on a 1/s recipe will be able to output 225 widgets, which can also be produced by 225 / 3.75 = 60 factories with 2x125% modules (since 2.25 / 3.75 = 0.6)

(note that due to the additive nature the effect will depend on the underlying crafting speed of the plant, though not on the recipe)
Thanks!

Re: Calculation output with different speed modules?

Posted: Sat Aug 05, 2017 3:20 am
by d3x0r
This mod seems to calculate buildings with mods and items... required power etc..

https://mods.factorio.com/mods/Helfima/helmod

Re: Calculation output with different speed modules?

Posted: Mon Aug 07, 2017 2:18 am
by Frightning
vanatteveldt wrote:Speed modules are additive. So, a yellow assembler has crafting speed 1.25. With two modules of 50% each they will have speed 1.25 + .5 + .5 = 2.25. Replacing the modules with +125% will give crafting speed 1.25 + 1.25 + 1.25 = 3.75

So, 100 factories with 2x50% modules working on a 1/s recipe will be able to output 225 widgets, which can also be produced by 225 / 3.75 = 60 factories with 2x125% modules (since 2.25 / 3.75 = 0.6)

(note that due to the additive nature the effect will depend on the underlying crafting speed of the plant, though not on the recipe)
This is not correct, the speed modifier of multiple modules is additive, but the effect on crafting speed is multiplicative, meaning that:
1.25*(1+50%+50%)=1.25*(1+0.5+0.5)=1.25*2=2.5 for two 50% modules, likewise, with 125% modules, you have 1.25*(1+1.25+1.25)=1.25*(3.5)=4.375 for two 125% modules. From this, the ratio of assemblers can be computed as the proportion, x:y, so that 2.5x=4.375y, with x=100, we obtain, 2.5(100)=4.375y, which becomes 250=4.375y, hence y=57.(142857) or just over 57 machines.

Re: Calculation output with different speed modules?

Posted: Mon Aug 07, 2017 7:45 am
by Engimage
Frightning wrote:
vanatteveldt wrote:Speed modules are additive. So, a yellow assembler has crafting speed 1.25. With two modules of 50% each they will have speed 1.25 + .5 + .5 = 2.25. Replacing the modules with +125% will give crafting speed 1.25 + 1.25 + 1.25 = 3.75

So, 100 factories with 2x50% modules working on a 1/s recipe will be able to output 225 widgets, which can also be produced by 225 / 3.75 = 60 factories with 2x125% modules (since 2.25 / 3.75 = 0.6)

(note that due to the additive nature the effect will depend on the underlying crafting speed of the plant, though not on the recipe)
This is not correct, the speed modifier of multiple modules is additive, but the effect on crafting speed is multiplicative, meaning that:
1.25*(1+50%+50%)=1.25*(1+0.5+0.5)=1.25*2=2.5 for two 50% modules, likewise, with 125% modules, you have 1.25*(1+1.25+1.25)=1.25*(3.5)=4.375 for two 125% modules. From this, the ratio of assemblers can be computed as the proportion, x:y, so that 2.5x=4.375y, with x=100, we obtain, 2.5(100)=4.375y, which becomes 250=4.375y, hence y=57.(142857) or just over 57 machines.
Confirming this
AssemblerSpeed.jpg
AssemblerSpeed.jpg (66.73 KiB) Viewed 5621 times
All speed module bonuses from either directly inserted of from beacons are additive. This applies to speed modules (+) and productivity modules (-). Thats why 4 prod/8 speed beaconed assembler shows +340% speed (5.5)

However I am really surprised this is so at the moment. Because this has definitely been changed recently! Just a few months ago the bonus was really additive so 4 prod/8 speed beaconed assy showed +365% (340 + 25% from assembler itself) so I should probably check this out in the field.

Edit:
It seams this was only a difference in the hints as on practice everything works as was and it should.

Re: Calculation output with different speed modules?

Posted: Tue Aug 08, 2017 6:49 pm
by vanatteveldt
This really surprises me, I was pretty sure my answer was correct, but I guess either the mechanic or the in-game information has changed? Anyway, sorry to spread false information!