Calculates optimal recipes for Factorio