Demand response (DR) is an integral part of the Smart Grid paradigm, and has become the focus of growing research, development, and deployment in residential, commercial and industrial systems over the last few years. In process systems, energy demand management through production scheduling is an increasingly important tool that has the potential to provide significant economic and operational benefits by promoting the responsiveness of the process operation and its interactions with the utility providers. However, the dynamic behavior of the underlying process, especially during process transitions, is seldom taken into account as part of the DR problem formulation. Furthermore, the incorporation of energy constraints related to electricity pricing and energy resource availability presents an additional challenge. The goal of this study is to present a novel optimization formulation for energy demand management in process systems that accounts explicitly for transition behaviors and costs, subject to time‐sensitive electricity prices and uncertainties in renewable energy resources. The proposed formulation brings together production scheduling and closed‐loop control, and is realized through a real‐time or receding‐horizon optimization framework depending on the underlying operational scenarios. The dynamic formulation is cast as a mixed‐integer nonlinear programming problem based on a proposed discretization approach, and its merits are demonstrated using a simulated continuous stirred tank reactor where the energy required is assumed to be roughly proportional to the material flow. © 2015 American Institute of Chemical Engineers AIChE J, 61: 3756–3769, 2015