An OLS provides grid control with a set of numbers, such as the target load for hours 1-24, that forecast the cleanest, most efficient, and least cost electrical supply in grids, microgrids, and nanogrids, so that all stakeholders: generation entities, utilities, distributors, retailers, and consumers--can reduce their electricity costs and carbon emissions.