Pseudo Euler-Lagrange and Piecewise Affine Control Applied to Surge and Stall in Axial Compressors