This lecture covers the mathematical formulation of energy system modelling, aiming to find the cost-optimal energy system by minimizing yearly system costs related to investment, maintenance, and operation. It discusses constraints on wind and solar power density, energy demand satisfaction, availability, and environmental limitations. The instructor explains the objective of supplying demands at the lowest total annual cost, considering installed capacity, operation, and energy tech resources.