In this article, the minimum time and fuel consumption of an aircraft in its climbing phase are studied. The controls are the thrust and the lift coefficient and state constraints are taken into account: air slope and speed limitations. The application of the maximum principle leads to parameterize the optimal control and the multipliers associated with the state constraints with the state and the costate and leads to describe a multipoint boundary value problem, which is solved by multiple shooting. This indirect method is the numerical implementation of the maximum principle with state constraints and it is initialized by the direct method, both to determine the optimal structure and to obtain a satisfying initial guess. The solutions of the boundary value problems we define give extremals, which satisfy necessary conditions of optimality with at most 2 boundary arcs. Note that the aircraft dynamics has a singular perturbation but no reduction is performed.