examples.macro_model.agents package¶
Submodules¶
examples.macro_model.agents.agents module¶
Agents from the basic macroeconomic model
examples.macro_model.agents.agents_accounting module¶
This is the accounting module This module contains all the necessary classes to do
-
class
examples.macro_model.agents.agents_accounting.Good(name_of_g, type_of_g, asset_category_of_g, consume_of_g, quantity_of_g, value_of_g, owner_of_g=None, producer_of_g=None)[source]¶ Bases:
objectA Basic Class representing a good.
-
ASSET_CATEGORY= ['w', 'cg', 'k', 'ph', 'd', 'l', 'id', 'il', 'b', 'ib', 'gw', 'gt']¶
-
CONSUME= ['immediate', 'depreciable', 'debt', 'continuous']¶
-
TYPE= ['real', 'financial']¶ w - Wages cg - Consumer_Good k - Capital ph - Dividends d - Deposit l - Loan id - Interests on deposits il - Interests on loans b - Bonds ib - Interests on bonds gw - Government wages gt - Government transfers (to households)
-
examples.macro_model.agents.bank module¶
Banks from the basic macroeconomic model
-
class
examples.macro_model.agents.bank.Bank(simulation, model, agent_number, agent_def)[source]¶ Bases:
examples.macro_model.agents.agents.EconomicAgentA Bank economic agent
examples.macro_model.agents.central_bank module¶
Agents from the basic macroeconomic model
-
class
examples.macro_model.agents.central_bank.CentralBank(simulation, model, agent_number, agent_def)[source]¶ Bases:
examples.macro_model.agents.agents.EconomicAgentThe Central Bank economic agent
examples.macro_model.agents.firms module¶
Firm Agents from the basic macroeconomic model
-
class
examples.macro_model.agents.firms.CGFirm(simulation, model, agent_number, agent_def)[source]¶ Bases:
examples.macro_model.agents.firms.FirmA Consumer Goods Firm
-
calculate_capacity_utilization()[source]¶ A CG Firm calculates capacity_utilization using capital productivity and the firm’s capital stock
-
calculate_labor_demand()[source]¶ A CG Firm calculates the total label demmand for production (NDct) This is calculated the using real capital stock for firm (kct) and the capital labor ratio for the specific technology (lk). NDct = kct/lk
-
-
class
examples.macro_model.agents.firms.Firm(simulation, model, agent_number, agent_def)[source]¶ Bases:
examples.macro_model.agents.agents.EconomicAgentA Generic Goods Firm
-
decide_offered_wage()[source]¶ Decide the wage for the quantity of expected work that firm wants to contract
-
-
class
examples.macro_model.agents.firms.KGFirm(simulation, model, agent_number, agent_def)[source]¶ Bases:
examples.macro_model.agents.firms.FirmA Capital Goods Firm
-
calculate_labor_demand()[source]¶ A KG Firm calculates the total label demmand for production (NDct) This is calculated the using desired output (yD_kt) and the labor productivity (mi_N) NDct = yD_kt/mi_N
-
examples.macro_model.agents.government module¶
Agents from the basic macroeconomic model
-
class
examples.macro_model.agents.government.Government(simulation, model, agent_number, agent_def)[source]¶ Bases:
examples.macro_model.agents.agents.EconomicAgentThe Government economic agetn
examples.macro_model.agents.household module¶
Household Agents from the basic macroeconomic model
-
class
examples.macro_model.agents.household.Household(simulation, model, agent_number, agent_def)[source]¶ Bases:
examples.macro_model.agents.agents.EconomicAgentHousehold Agent
examples.macro_model.agents.production module¶
The production Functions for the Firms
@author: rivero
-
class
examples.macro_model.agents.production.Equipment(owner, K=None, Y_L=None, Y_P=None, L_P=None, Y=None, L=None)[source]¶ Bases:
objectThe equipment used in the production function
Module contents¶
-
class
examples.macro_model.agents.EconomicAgent(simulation, model, agent_number, agent_def)[source]¶ Bases:
sphinx.ext.autodoc.importer._MockObjectA basic economic agent
-
class
examples.macro_model.agents.Household(simulation, model, agent_number, agent_def)[source]¶ Bases:
examples.macro_model.agents.agents.EconomicAgentHousehold Agent
-
class
examples.macro_model.agents.Firm(simulation, model, agent_number, agent_def)[source]¶ Bases:
examples.macro_model.agents.agents.EconomicAgentA Generic Goods Firm
-
decide_offered_wage()[source]¶ Decide the wage for the quantity of expected work that firm wants to contract
-
-
class
examples.macro_model.agents.CGFirm(simulation, model, agent_number, agent_def)[source]¶ Bases:
examples.macro_model.agents.firms.FirmA Consumer Goods Firm
-
calculate_capacity_utilization()[source]¶ A CG Firm calculates capacity_utilization using capital productivity and the firm’s capital stock
-
calculate_labor_demand()[source]¶ A CG Firm calculates the total label demmand for production (NDct) This is calculated the using real capital stock for firm (kct) and the capital labor ratio for the specific technology (lk). NDct = kct/lk
-
-
class
examples.macro_model.agents.KGFirm(simulation, model, agent_number, agent_def)[source]¶ Bases:
examples.macro_model.agents.firms.FirmA Capital Goods Firm
-
calculate_labor_demand()[source]¶ A KG Firm calculates the total label demmand for production (NDct) This is calculated the using desired output (yD_kt) and the labor productivity (mi_N) NDct = yD_kt/mi_N
-
-
class
examples.macro_model.agents.Bank(simulation, model, agent_number, agent_def)[source]¶ Bases:
examples.macro_model.agents.agents.EconomicAgentA Bank economic agent
-
class
examples.macro_model.agents.CentralBank(simulation, model, agent_number, agent_def)[source]¶ Bases:
examples.macro_model.agents.agents.EconomicAgentThe Central Bank economic agent
-
class
examples.macro_model.agents.Government(simulation, model, agent_number, agent_def)[source]¶ Bases:
examples.macro_model.agents.agents.EconomicAgentThe Government economic agetn
-
class
examples.macro_model.agents.Good(name_of_g, type_of_g, asset_category_of_g, consume_of_g, quantity_of_g, value_of_g, owner_of_g=None, producer_of_g=None)[source]¶ Bases:
objectA Basic Class representing a good.
-
ASSET_CATEGORY= ['w', 'cg', 'k', 'ph', 'd', 'l', 'id', 'il', 'b', 'ib', 'gw', 'gt']¶
-
CONSUME= ['immediate', 'depreciable', 'debt', 'continuous']¶
-
TYPE= ['real', 'financial']¶ w - Wages cg - Consumer_Good k - Capital ph - Dividends d - Deposit l - Loan id - Interests on deposits il - Interests on loans b - Bonds ib - Interests on bonds gw - Government wages gt - Government transfers (to households)
-