The parameter dynamics of solitons, propagating through optical fibers, is emerged from the usage of variational principle. The anti-cubic nonlinearity and its generalized version are studied. This study reveals that the center position does not affect the dynamics of different parameters and only soliton power and linear momentum are conserved quantities.