A variational approach of nonlinear dissipative pulse propagation