This lecture covers the modelling and optimization of energy systems, focusing on solving optimization problems with constraints and variables. Topics include linear and integer programming, convex and concave functions, Lagrange formulation, and indirect search methods.