When is the instantaneous velocity equal to avg velocity?

Mainly, when the velocity doesn't change. Also, in the case of varying velocity, the instantaneous velocity might, for a brief instant, be equal to the average velocity.