Continuity: Functions, continuity and compactness, existence of minimizers and maximizers