Optimization and control theory in shell models of turbulence