Industrial applications of production planning with optimal electricity demand