Computational modeling of an economy using elements of artificial intelligence