The Optimization check box in the Stationary and Time Dependent study steps have been removed. Instead, use the Optimization study step. The Optimization check box does appear in models created in earlier versions of COMSOL Multiphysics where you have selected that check box.