International audienceAn optimal control methodology is proposed for plant growth. This methodology is demonstrated by solving a water supply problem for optimal sunflower fruit filling. The functional-structural sunflower growth is described by a dynamical system given soil water conditions. Numerical solutions are obtained through an iterative optimization procedure, in which the gradients of the objective function, i.e. the sunflower fruit weight, are calculated efficiently either with adjoint modeling or by differentiation algorithms. Further improvements in sunflower yield have been found compared to those obtained using genetic algorithms in our previous studies. The optimal water supplies adapt to the fruit filling. For instance, dur...