Solving for the generalized inverse of the Lorenz model