The unit commitment problem is a fundamental problem in the electric power industry. The objective of unit commitment is to determine an optimal schedule for each generating unit so that the demand for electricity is met at minimum cost for the system as a whole. This tutorial presents selected mathematical optimization models for the unit commitment problem with a focus on those integrating power flow representations.