Optical solitons for complex Ginzburg–Landau model in nonlinear optics