Evolutionary variational inequality with long-term memory and applications to economic networks