Lattice models, deformed Virasoro algebra and reduction equation