This is a continuation of an introduction to constrained optimization given within a course on "Optimal and robust control" (A3M35ORR, AE3M35ORR) given at CTU in Prague. In particular, we are developing second-order conditions of optimality leading to the projected Hessians.