An optimal control system designed to minimize the consumption of high pressure steam (and thus minimizing energy costs) while meeting the paper mill's demand for process steam and electric power is developed. An installation example is described and system performance and benefits are discussed. It should be noted that the theories developed in this paper can be readily extended to the design of an optimal control system which maximizes the electric generation under the given inlet steam flow.