DPG methods for nonlinear fiber optics