We exploit a novel idea for the optimization of flows governed by the
Euler equations. The algorithm consists of marching on the design hype
rsurface while improving the distance to the state and costate hypersu
rfaces. We consider the problem of matching the pressure distribution
to a desired one, subject to the Euler equations, for both subsonic an
d supersonic Bows. We limited our investigation to two-dimensional tes
t cases. The rate of convergence to the minimum for the cases consider
ed is three to four times slower than that of the analysis problem. Re
sults are given for Ringleb flow and a shockless compression case.