Abstract
The aim of this work is to develop a numerical tool for computing the weak periodic solution for a class of parabolic equations with nonlinear boundary conditions. We formulate our problem as a minimization problem by introducing a least-squares cost function. With the help of the Lagrangian method, we calculate the gradient of the cost function. We build an iterative algorithm to simulate numerically the weak periodic solution to the considered problem. To illustrate our approach, we present some numerical examples.