Nonlinear effects for Bose-Einstein condensates in optical lattices