On simulation and optimization of macroeconometric models