Simulink implementation of a General Economic Equilibrium with 2 firms and 2 consumers. The model features two general level-2 masked s-functions. The first one implements the consumer, which maximizes his utility function, and the second implements the firm, which maximizes its profit.
This was taken from: "Economics: a Mathematical Introduction", C.J. McKenna and Ray Rees, Chapter 14.
Giampiero Campa (2019). General Economic Equilibrium (https://www.mathworks.com/matlabcentral/fileexchange/22513-general-economic-equilibrium), MATLAB Central File Exchange. Retrieved .
It is very useful.
I developed a function to compute general economic equilibrium including n commodities and m agens(firms or consumers). If it's useful for anyone I will upload it.
I'm new to MatLab and I am triying to solve a model for social security reform with genera equilibrium model. Does anyone have a good resource to help guide me through the process?
Theoretically, I know what I'm supposed to do to solve, but I just don't have a clue as to how it works in MatLab.