Optical solitons to the generalized nonlinear Schrödinger equations for pulse propagation using several different techniques