Reduced Order Modeling for Optimization of Large Scale Dynamical Systems