Chapter 4 discusses the optimization of power generation through the economic dispatch of thermal plants, focusing on minimizing operational costs while meeting power demands. It covers both unconstrained and constrained optimization methods, including Lagrange multipliers and Newton-Raphson techniques, to determine optimal power outputs for various generation plants. The chapter also emphasizes the impact of generator efficiencies, fuel costs, and transmission losses on overall generation costs.