A simple example of using linear programming to model an economy.
requires GLPK to be installed
House 10.0 food => 10.0 labor
Mine 2.5 labor => 2.5 ore
Factory 2.5 labor + 2.5 ore => 5.0 tools
Farm 5.0 labor + 5.0 tools => 10.0 food