The Factorio calculator. Calculate quantities of machine and ingredient required in a factory to achieve materials production speed.
The powerful solver based on IPMs for LP allows factories with complex recipe chains and loops to be calculated without extra hassle.
- A recipe chain is configured to automatically calculate for each recipe.
- Supports recipe chains including loops, including quality recycling cascades and byproduct-heavy chains (e.g. Fulgora recycling).
- Folds modules, beacons, quality tiers, and force productivity research bonuses into the calculation.
- Calculate the total power used/generated and pollution emitted.
- Treats generators, boilers, mining, pumping, labs, fusion reactors, thrusters, agricultural towers and item spoilage as virtual recipes.
- Set limited machine and material constraints for calculations.
- Supports Factorio 2.0 / Space Age (quality tiers, fluid temperatures).
Warning: Multiplayer games have not been tested. Note that solution data may be lost if used.
- Click the blue '+' button to create a new solution.
- Choose the material to target for production speed.
- Choose a recipe to product or ingredient that material.
- Click on a material button in "Products" column or "Ingredients" column to add a recipe.
- Click on a button in "Machine" column to set a machine, fuel and modules to be used.
- Adjust the constraints to set the production speed to target.
The number in "Required" column is the quantity of machines required for each recipe. Use this as a guide to build your factory!
Note: Constraints can be added by right-click on material or recipe buttons.
Qualities above normal start locked, so quality modules have no effect on the calculation until you unlock them in the solver:
- Click the "Research bonuses" button to open its dialog.
- Under "Unlocked qualities", check each quality you have researched.
- Click confirm to apply.
The solver then expands recipes into the quality cascade, and quality modules shift production toward the higher tiers.
I originally developed the solver for linear problems as an additional feature of Factory Planner. However, that solver was not merged, so I decided to develop another mod from scratch specifically for that solver.