E. Allgower and &. K. Georg, Introduction to numerical continuation methods, Classics in Applied Mathematics, Soc. for Industrial and Applied Math, vol.45, p.388, 2003.

J. T. , Betts Practical methods for optimal control using nonlinear programming, Society for Industrial and Applied Mathematics (SIAM), 2001.

F. J. Bonnans, P. Martinon, and &. Grélard, Bocop-A collection of examples, INRIA, p.8053, 2012.
URL : https://hal.archives-ouvertes.fr/hal-00726992

B. Bonnard, J. Caillau, and &. E. Trélat, Second order optimality conditions in the smooth case and applications in optimal control, ESAIM: COCV, vol.13, issue.2, pp.207-236, 2007.
URL : https://hal.archives-ouvertes.fr/hal-00086380

B. Bonnard and &. Chyba, Singular trajectories and their role in control theory, vol.40, p.357, 2003.

B. Bonnard, M. Chyba, A. Jacquemard, and &. Marriott, Algebraic geometric classification of the singular flow in the contrast imaging problem in nuclear magnetic resonance. Mathematical Control and Related Fields-AIMS, Special issue in the honor of Bernard Bonnard. Part II, pp.397-432, 2013.
URL : https://hal.archives-ouvertes.fr/hal-00939495

B. Bonnard, M. Chyba, and &. Marriott, Singular Trajectories and the Contrast Imaging Problem in Nuclear Magnetic Resonance, SIAM J. Control Optim, vol.51, issue.2, pp.1325-1349, 2013.
URL : https://hal.archives-ouvertes.fr/hal-00939496

B. Bonnard, M. Claeys, O. Cots, and &. Martinon, Geometric and numerical methods in the contrast imaging problem in nuclear magnetic resonance, Acta Appl. Math, vol.135, issue.1, pp.5-45, 2014.
URL : https://hal.archives-ouvertes.fr/hal-00867753

B. Bonnard and &. Cots, Geometric numerical methods and results in the control imaging problem in nuclear magnetic resonance, Math. Models Methods Appl. Sci, vol.24, issue.1, pp.187-212, 2012.
URL : https://hal.archives-ouvertes.fr/hal-01136896

B. Bonnard, O. Cots, S. Glaser, M. Lapert, D. Sugny et al., Geometric optimal control of the contrast imaging problem in nuclear magnetic resonance, IEEE Trans. Automat. Control, vol.57, issue.8, pp.1957-1969, 2012.
URL : https://hal.archives-ouvertes.fr/hal-00750032

B. Bonnard, O. Cots, J. Rouot, and T. Verron, Working Notes on the Time Minimal Saturation of a Pair of Spins and Application in Magnetic Resonance Imaging
URL : https://hal.archives-ouvertes.fr/hal-01721845

B. Bonnard, J. Faugère, A. Jacquemard, M. Safey-el-din, and T. Verron, Determinantal sets, singularities and application to optimal control in medical imagery, 2016.
URL : https://hal.archives-ouvertes.fr/hal-01307073

B. Bonnard and &. Kupka, Théorie des singularités de l'application entrée/sortie et optimalité des trajectoiressingulì eres dans leprobì eme du temps minimal, Forum Math, issue.2, pp.111-159, 1993.

U. Boscain and &. Piccoli, Optimal Syntheses for Control Systems on 2-D Manifolds, p.43, 2004.

R. Bulirsch and J. Stoer, Introduction to numerical analysis, Texts in Applied Mathematics, vol.12, p.744, 1993.

J. Caillau, O. Cots, and &. Gergaud, Differential continuation for regular optimal control problems, Optimization Methods and Software, vol.27, pp.177-196, 2011.

M. Claeys, J. Daafouz, and D. Henrion, Modal occupation measures and {LMI} relaxations for nonlinear switched systems control, Automatica, vol.64, pp.143-154, 2016.
URL : https://hal.archives-ouvertes.fr/hal-00980355

S. Conolly, D. Nishimura, and &. Macovski, Optimal control solutions to the magnetic resonance selective excitation problem, IEEE Trans. Med. Imaging, issue.2, pp.106-115, 1986.

M. Gerdts, Optimal Control of ODEs and DAEs, 2011.
URL : https://hal.archives-ouvertes.fr/hal-00724908

D. Henrion, J. B. Lasserre, and &. Löfberg, GloptiPoly 3: Moments, Optimization and Semidefinite Programming, Optim. Methods and Software, vol.24, issue.4-5, pp.761-779, 2009.
URL : https://hal.archives-ouvertes.fr/hal-00172442

A. J. Krener, The high order maximal principle and its application to singular extremals, SIAM J. Control Optim, vol.15, issue.2, pp.256-293, 1977.

I. Kupka, Geometric theory of extremals in optimal control problems. I. The fold and Maxwell case, Trans. Amer. Math. Soc, vol.299, issue.1, pp.225-243, 1987.

M. Lapert, Y. Zhang, M. Braun, S. J. Glaser, and &. Sugny, Singular extremals for the timeoptimal control of dissipative spin 1/2 particles, Phys. Rev. Lett, vol.104, issue.2, p.83001, 2010.

M. Lapert, Y. Zhang, M. A. Janich, S. J. Glaser, and D. Sugny, Exploring the physical limits of saturation contrast in magnetic resonance imaging, Sci. Rep, p.589, 2012.
URL : https://hal.archives-ouvertes.fr/hal-00750055

J. Lasserre, Moments, Positive Polynomials and Their Applications, 2009.

J. Lasserre, D. Henrion, C. Prieur, and E. Trélat, Nonlinear optimal control via occupation measures and LMI-relaxations, SIAM J. Control Optim, issue.4, pp.1643-1666, 2008.
URL : https://hal.archives-ouvertes.fr/hal-00136032

M. H. Levitt, Spin dynamics: Basics of Nuclear Magnetic Resonance, 2008.

L. Markus, Quadratic differential equations and non-associative algebras, pp.185-213, 1960.

H. Maurer, Numerical solution of singular control problems using multiple shooting techniques, J. Optim. Theory Appl, vol.18, issue.2, pp.235-257, 1976.

A. Mosek, The mosek optimization toolbox for matlab manual, 2015.

J. Nocedal and S. J. Wright, Numerical optimization, 1999.

L. S. Pontryagin, V. G. Boltyanski?-i, R. V. Gamkrelidze, and &. E. Mishchenko, The Mathematical Theory of Optimal Processes, 1962.

M. Putinar, Positive polynomials on compact semi-algebraic sets, Indiana Univ. Math. J, vol.42, issue.3, pp.969-984, 1993.

H. Schättler, The local structure of time-optimal trajectories in dimension three under generic conditions, SIAM J. Contr. Opt, vol.26, issue.4, pp.899-918, 1988.

H. J. Sussmann, Time-optimal control in the plane, in Feedback control of linear and nonlinear systems, Lecture Notes in Control and Inform. Sci, vol.39, pp.244-260, 1981.

H. J. Sussmann, Regular synthesis for time-optimal control of single-input real-analytic systems in the plane, SIAM J. Control and Opt, vol.25, issue.5, pp.1145-1162, 1987.

E. Van-reeth, H. Ratiney, M. Tesch, D. Grenier, O. Beuf et al., Optimal control design of preparation pulses for contrast optimization in MRI, J. Magn. Reson, vol.279, pp.39-50, 2017.
URL : https://hal.archives-ouvertes.fr/hal-01520515

, E-mail address: bernard.bonnard@u-bourgogne.fr E-mail address: olivier.cots@irit.fr E-mail address: jeremy.rouot@grenoble-inp