In the Smart Grid (SG), generation, distribution, pricing, utilization, and storage of electrical energy are handled in a distributed, integrated, reliable, efficient, and sustainable fashion by multiple coordinated parties. Almost all aspects of this global ""Energy and Information Internet"" are envisioned to be optimized so that the targeted enhancements over the traditional electric grid can be fulfilled to the fullest extent possible. Considering each of these constituents in optimization requires a sufficiently detailed mathematical model, which is the starting point of an optimization process, and a wide array of optimization techniques are utilized for solving various optimization problems in Smart Grid. This timely book introduces the fundamentals of smart grid concepts, the pillars of mathematical programming-based optimization, modeling Smart Grid problems as optimization models, and optimization techniques for different modeling purposes and constraints. With the proliferation of the deployment of SG enabling technologies, there is a need for a workforce that is familiar with the latest fundamental developments in the field of SG and microgrid optimization. The book will also be useful in academia for faculty, researchers, and students as a primary textbook for SG demand response.