Update Optimization.cpp