File Exchange

image thumbnail

General Economic Equilibrium

version (10.3 KB) by Giampiero Campa
2-Goods 2-Consumers General Economic Equilibrium


Updated 22 Dec 2008

View License

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.

Cite As

Giampiero Campa (2019). General Economic Equilibrium (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

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.

MATLAB Release Compatibility
Created with R14SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux