Talk:Quality: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
Line 33: Line 33:
https://docs.google.com/spreadsheets/d/13HH2twPdDAOo0L1jNLODH1rbGHgyowZjcVNXBhBAaDA/edit?usp=sharing
https://docs.google.com/spreadsheets/d/13HH2twPdDAOo0L1jNLODH1rbGHgyowZjcVNXBhBAaDA/edit?usp=sharing
--[[User:Cooky173|Cooky173]] ([[User talk:Cooky173|talk]]) 12:29, 24 November 2024 (UTC)
--[[User:Cooky173|Cooky173]] ([[User talk:Cooky173|talk]]) 12:29, 24 November 2024 (UTC)
With a little bit of linear algebra I have found an explicit formula for the number of batches of ingredients required per legendary product. When there is no quality module in the assemblers(/foundries/whatever), the formula is rather simple:
<math>
\frac{1000 \, \left[(p+1) \,q_r-p+3\right]^4}{(p+1)^2 \,q_r\, \left[10 \,(p+1)\, q_r-p+3\right]^3}
</math>
where <math>p</math> is the total productivity of the crafting machines, and <math>q_r</math> is the quality of the recyclers. There is also a more general formula when the quality in the assemblers, <math>q_a</math>, is non zero, but it is much uglier (and it breaks formatting, sorry):
<math>
\frac{1000 \left((p+1) q_a \left(q_r-1\right)-(p+1) q_r+p-3\right)^4}{(p+1) \left(-q_r \left((p+1) q_a \left(q_a \left((p+1) q_a \left((p+1) (p+15997) q_a-4 (p (p+3194)+6409)\right)+6 (p-3) (p (p+474)+969)\right)-4 (p-3)^2 (p+57)\right)+((p-8) p+18) p^2\right)+1000 (p+1)^4 \left(q_a-1\right){}^4 q_r^4-100 (p+1)^3 \left(q_a-1\right){}^3 q_r^3 \left((3 p+151) q_a-3 p+9\right)+6 (p+1)^2 q_r^2 \left(q_a \left(q_a \left(5 (p+1) (p+797) q_a^2-2 (p (10 p+3207)+6289) q_a+30 p (p+114)+5470\right)-20 (p-3) (p+27)\right)+5 (p-3)^2\right)+4 q_a \left(10 (p+1) q_a-p+3\right)^3+27 q_r\right)}
</math>
As a check, these formulas give the same results as the spreadsheet of Cooky173. However these results are different than the ones currently shown on the page.
I believe there are currently too much information on the page. Many lines of the giant table are not so useful, as no one should try to upcycle for legendary products without at least epic modules, as the figures show. Regarding the formulas: the general one does not have its place on the page, but the one with only productivity could be useful I think. Going full productivity is almost always the best choice anyway, even when it is not truly optimal, since it lets you use beacons with speed modules to build at scale.
I am newly registered here and I don't have experience writing for wikis, so I would like your opinions before modifying the page.

Revision as of 22:27, 26 November 2024

Template for quality-affected stats

Writing this here because I need to write it somewhere.

I went ahead and made a template for when the same property varies based on quality. (Example:

Quality normal.png Small number
Quality uncommon.png Not so small number Quality rare.png Decent number
Quality epic.png Big number Quality legendary.png Insane number

.) Not sure if this is how we're gonna handle it (I've never been one to make good decisions :b), so it won't bother me if we wind up doing something completely different. I've already added it to the electromagnetic plant infobox (not sure if that was a good idea...), so you can see it there in practice if you need to. However, I don't really want to take it any further if I'm the only one who thinks this is a good idea. So, any thoughts? - tecanec (talk) 13:07, 28 October 2024 (UTC)

Thanks for the initial implementation and the example usage! I made some adjustments and I think it's good to go now :D -- Bilka (talk) - Admin 21:51, 28 October 2024 (UTC)

Optimal module usage

How exactly is the optimal module usage calculated? I know the list only applies to it's usage in Assembler 3's, but with the new special buildings from other planets, chemical plants, and other various machines, I feel like it would be much better to break down what exactly the formula is in a general sense so we can apply it to every machine, instead of only getting the answers for a single machine. Brin (talk) 00:07, 13 November 2024 (UTC)

Agreed with this - even for one machine, it seems incredibly un-useful to present these stats on the page as absolute truth without showing any workings. I'd rather have this section removed from the wiki than blindly trust it. Sachertorte (talk) 18:29, 17 November 2024 (UTC)

I created an excel sheet to do the iterative calculations to work out the number of crafts required to take 1 set of common inputs to 1 set of legendary outputs, using the statistical products. It is a bit complicated, using Markov chains and matrix multiplication. I'm not in a position to upload the sheet, but a screenshot is included showing the transition probabilities and workflow (for a 50% productivity machine with common quality 3 modules in it and the recycler

Screenshot 2024-11-21 094640.png

--Cooky173 (talk) 23:55, 20 November 2024 (UTC)

Have done a further revision to add some derivation - maybe getting too technical for the wiki page, but figured it was better to write it down somewhere and let people more familiar with wiki format to either clean it up or put it in a more appropriate place.--Cooky173 (talk) 07:07, 22 November 2024 (UTC)

Cause i had no access to wiki and couldnt contact Cooky173 i added a post concerning this page: https://forums.factorio.com/viewtopic.php?f=50&t=122540 Not sure whether i should delete my post and move it to this discussion.

Now that i looked at your numbers in the spreadsheat i wonder why there is a "crafting round 2"? It seems like the output of the recycling round 1 is not the same as the input to recycling round 2.

At least for items that were not recycled into its ingredients (like iron or superconductors) the calculation should imo base on 1 crafting plus (theoretically) infinite recycling of the non-legendary items.

The situation differs when recycling results into components of the item (like green circuits). Then it can be proven that using the results of 1 recycling should better be used for next crafting than for further recycling. To calculate these odds then becomes way more complex.

Screenshot 2024-11-23 002509.png

--FactorioGamer22 (talk) 23:12, 22 November 2024 (UTC)

I converted my spreadsheet to google sheets. I think its working and I think I made mistakes when generating the tables in the wiki. Need to crunch the data again and fix.

https://docs.google.com/spreadsheets/d/13HH2twPdDAOo0L1jNLODH1rbGHgyowZjcVNXBhBAaDA/edit?usp=sharing --Cooky173 (talk) 12:29, 24 November 2024 (UTC)

With a little bit of linear algebra I have found an explicit formula for the number of batches of ingredients required per legendary product. When there is no quality module in the assemblers(/foundries/whatever), the formula is rather simple:

where is the total productivity of the crafting machines, and is the quality of the recyclers. There is also a more general formula when the quality in the assemblers, , is non zero, but it is much uglier (and it breaks formatting, sorry):

As a check, these formulas give the same results as the spreadsheet of Cooky173. However these results are different than the ones currently shown on the page.

I believe there are currently too much information on the page. Many lines of the giant table are not so useful, as no one should try to upcycle for legendary products without at least epic modules, as the figures show. Regarding the formulas: the general one does not have its place on the page, but the one with only productivity could be useful I think. Going full productivity is almost always the best choice anyway, even when it is not truly optimal, since it lets you use beacons with speed modules to build at scale.

I am newly registered here and I don't have experience writing for wikis, so I would like your opinions before modifying the page.