Optimization of an ecological model with the Marquardt algorithm