Anisotropic models for compact star with various equation of state