Adaptive functions in an agent-based model of an economic system. (February 2023)