The second module of the course was devoted to energy and power system optimization. Building on the GAMS basics taught in the first module, we started from a simple static economic dispatch model which - in a way maximizing participant interaction - was developed into a dynamic economic dispatch model. At the same pace we jointly developed GAMS models for unit commitment, DC/AC optimal power flow, involved energy storage systems, and had a thorough look at modeling and solving allocation problems. Once formulated, all components were put together by formulating full-blown integrated energy system optimization models. Along the way advanced modeling techniques such as linearization and “big M” methods were introduced and deployed. Finally, a session on decision making under uncertainty elaborated on stochastic modeling techniques such as scenario modeling, fuzzy modeling, and robust optimization.