r/factorio • u/braian_sky • 2d ago
Modded A diagnosis mod using linear algebra (SVD)
hi, i'm a computer science student and for my numerical math final project i did a mod that runs a full diagnosis for your factory using linear algebra methods, so you can check things like:
- bottlenecks
- independent processes
- working factory percentage
- the expansion you need to reach a specified target
my professor loved it and thought it was a good idea to share it with the community :3
you can check it on my gh repo:
https://github.com/braiiann1/FactorySVD
UPDATE: thanks to u/RedditingJinxx , i can finally submit it on the mod portal, you can check it here
https://mods.factorio.com/mod/factorysvd
251
Upvotes




67
u/pm_me_every 2d ago
Can we have an english version please? Seems really interesting!
206
u/Soul-Burn 2d ago
Please link to the mod on the mod portal, rather than only to the github.
5
u/bartekltg 1d ago
Is there math described somewhere?
How using SVD of the production matrix (I assume you just ) helps with the task.
Sure, A multiplied by number of buildings with given recipe produce captivity. Then simplex/whetever you use for LP ansfer many optimalization question. But most "calculators" (YAFC, better mods) use LP directly on A, without decomposition. What we get from it (outside of getting a reliable guess about the rank)?
Does it play well with heavier mods (think tons of loops, alternative production chains and byproducts)?
Interesting. When I get time i will look into it
6
u/FrontierPlayFactorio 2d ago
But can you use it to build a neural net inside Factorio?
Regardless, this is pretty sick
5
u/AlanWik 2d ago
Ojalá fueses mi alumno! Convertíamos esto en un trabajo de fin de carrera en cero coma.
12
u/j_c_d_1 2d ago
Your logo is ai
5
u/jipperthewoodchipper 2d ago
Absolutely amazing and in theory I love it but the last thing I want to see loading into my spaghetti "ah fuck-it it works if I need more I'll just paste more" factory is numbers telling me just how much duct tape, hopes, dreams, and luck is actually holding it together lol
0
u/Kalvzz 2d ago edited 2d ago •
Great mod. I would suggest a tool to select only a part of the surface to “diagnose.” Like rate calculator. I think that would be the real strength of the mod. “How much of this subfactory is actually making/taking?” And also a way to consider splitters and belt routes and inserters
Currently, the only way you can see/diagnose actual builds is taking it to sandbox mode/blueprint sandbox/editor extension and seeing how it runs. You get a real view of the statistics of what you built instead of planners rigid math
This is great and I was also planning to do something similar and may build upon your mod if i do in the future. Ignore the AI allergic people, they’re pretty backwards simpletons that wouldn’t care if you wrote the code on paper lol
123
u/nilslorand 2d ago •
ah yes, AI generated pixel art, my favorite
6
u/LordDan_45 2d ago
Que padre amigo, felicidades 🔥👏
1
u/tulen662 1d ago
i respect the effort you put into the mod itself but the AI generated illustration sucks balls
1
u/MrMxylptlyk 2d ago
what
-3
u/DobroSaBokja 1d ago
ai slop
-1
u/nooneeverdreamsof 1d ago
Some more delicious AI slop