greeny / SatisfactoryTools

Satisfactory Tools for planning and building the perfect base.
https://www.satisfactorytools.com/
MIT License
268 stars 57 forks source link

Solver suggests using both the standard recipe and the alt when alt strictly dominates #57

Open aldanor opened 3 years ago

aldanor commented 3 years ago

An example (link) where both Solid Steel Ingot and Steel Ingot are used at the same time. However Solid Steel Ingot (2, 2 -> 3) strictly dominates Steel Ingot (3, 3 -> 3) in terms of raw resources, so it's weird that the solver decides to pick both at the same time (and then even route the outputs to the same nodes):

image

greeny commented 3 years ago

that's most likely due to the known "bug", where maximise doesn't optimise for raw resources. Best way to go around this is to copy the number that you get and put it to the tool again with "items/min", then it'll be optimised for raw resources. New version that's in the works will do this automatically tho, so you'll have even maximise setups optimised for raw resources.

aldanor commented 3 years ago

Fair enough, thanks! (maybe this example will come helpful during dev as a test case)

aldanor commented 3 years ago

Just a note - may also be useful to add a checkbox "Only use one recipe per part" (and maybe even set it on by default) - it happens very often in both modes (maximize and items/min) - that it picks e.g. both Modular Frame and Steeled Frame etc. Realistically, you would pretty much always just pick one, even if there's 1% difference in performance.

greeny commented 3 years ago

While being technically possible, it's not a big priority for now. May add it later I guess.