Expectations in traditional economic models are given as a datum within the initial conditions. It does not take into account the process of their formation or their involvement in the interaction of agents. The algorithm of Complex Adaptive Expectations (CAE) is proposed to study the formation of expectations in a...