-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathparameters_restriction.py
97 lines (97 loc) · 6.44 KB
/
parameters_restriction.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# MODEL PARAMETERS SPECIFIC RESTRICTIONS
PRODUCTIVITY_EXPONENT = {'max': 1, 'min': 0, 'distribution': 'normal'}
PRODUCTIVITY_MAGNITUDE_DIVISOR = {'max': 20, 'min': 1, 'distribution': 'normal'}
# GENERAL CALIBRATION PARAMETERS
# Order of magnitude parameter of input into municipality investment
MUNICIPAL_EFFICIENCY_MANAGEMENT = {'max': .001, 'min': .00001, 'distribution': 'normal'}
# INTEREST. Choose either: 'nominal', 'real' or 'fixed'. Default 'real'
INTEREST = {'alternatives': ['nominal', 'real', 'fixed'], 'distribution': 'choice'}
# By how much percentage to increase prices
MARKUP = {'max': .5, 'min': 0, 'distribution': 'normal'}
# Frequency firms change prices. Probability > than parameter
STICKY_PRICES = {'max': 1, 'min': 0, 'distribution': 'normal'}
# Number of firms consulted before consumption
SIZE_MARKET = {'max': 100, 'min': 1, 'distribution': 'normal'}
# Frequency firms enter the market
LABOR_MARKET = {'max': 1, 'min': 0, 'distribution': 'normal'}
# Percentage of employees firms hired by distance
PCT_DISTANCE_HIRING = {'max': 1, 'min': 0, 'distribution': 'normal'}
# Ignore unemployment in wage base calculation
WAGE_IGNORE_UNEMPLOYMENT = {'alternatives': [True, False], 'distribution': 'choice'}
# Candidate sample size for the labor market
HIRING_SAMPLE_SIZE = {'max': 100, 'min': 1, 'distribution': 'normal'}
# TAXES
TAX_CONSUMPTION = {'max': .6, 'min': .1, 'distribution': 'normal'}
TAX_LABOR = {'max': .6, 'min': .01, 'distribution': 'normal'}
TAX_ESTATE_TRANSACTION = {'max': .01, 'min': .0001, 'distribution': 'normal'}
TAX_FIRM = {'max': .6, 'min': .01, 'distribution': 'normal'}
TAX_PROPERTY = {'max': .01, 'min': .0001, 'distribution': 'normal'}
# GOVERNMENT
ALTERNATIVE0 = {'alternatives': [True, False], 'distribution': 'choice'}
FPM_DISTRIBUTION = {'alternatives': [True, False], 'distribution': 'choice'}
POLICY_COEFFICIENT = {'max': .4, 'min': 0, 'distribution': 'normal'}
# Policies alternatives may include: 'buy', 'rent' or 'wage' or 'no_policy'. For no policy set to empty strings ''
# POLICY_COEFFICIENT needs to be > 0.
POLICIES = {'alternatives': ['buy', 'rent', 'wage', 'no_policy'], 'distribution': 'choice'}
POLICY_DAYS = {'max': 3600, 'min': 0, 'distribution': 'normal'}
# Size of the poorest families to be helped
POLICY_QUANTILE = {'max': 1, 'min': 0, 'distribution': 'normal'}
# HOUSING AND REAL ESTATE MARKET
# LOANS
# Maximum age of borrower at the end of the contract
MAX_LOAN_AGE = {'max': 100, 'min': 50, 'distribution': 'normal'}
# Used to calculate monthly payment for the families, thus limiting maximum loan by number of months and age
LOAN_PAYMENT_TO_PERMANENT_INCOME = {'max': 1, 'min': 0, 'distribution': 'normal'}
# Refers to the maximum loan monthly payment to total wealth
# MAX_LOAN_PAYMENT_TO_WEALTH=.4
# Refers to the maximum rate of the loan on the value of the estate
MAX_LOAN_TO_VALUE = {'max': 1, 'min': 0, 'distribution': 'normal'}
# This parameter refers to the total amount of resources available at the bank.
MAX_LOAN_BANK_PERCENT = {'max': 1, 'min': 0, 'distribution': 'normal'}
CAPPED_TOP_VALUE = {'max': 2, 'min': 1, 'distribution': 'normal'}
CAPPED_LOW_VALUE = {'max': 1, 'min': 0, 'distribution': 'normal'}
# Influence of vacancy size on house prices
# It can be True or 1 or if construction companies consider vacancy strongly it might be 2 [1 - (vacancy * VALUE)]
OFFER_SIZE_ON_PRICE = {'max': 5, 'min': 0, 'distribution': 'normal'}
# TOO LONG ON THE MARKET:
# value=(1 - MAX_OFFER_DISCOUNT) * e ** (ON_MARKET_DECAY_FACTOR * MONTHS ON MARKET) + MAX_OFFER_DISCOUNT
# AS SUCH (-.02) DECAY OF 1% FIRST MONTH, 10% FIRST YEAR. SET TO 0 TO ELIMINATE EFFECT
ON_MARKET_DECAY_FACTOR = {'max': 0, 'min': -.1, 'distribution': 'normal'}
# LOWER BOUND, THAT IS, AT LEAST 50% PERCENT OF VALUE WILL REMAIN AT END OF PERIOD, IF PARAMETER IS .5
MAX_OFFER_DISCOUNT = {'max': 1, 'min': .4, 'distribution': 'normal'}
# Percentage of households pursuing new location
PERCENTAGE_ENTERING_ESTATE_MARKET = {'max': .01, 'min': 0, 'distribution': 'normal'}
NEIGHBORHOOD_EFFECT = {'max': 5, 'min': 0, 'distribution': 'normal'}
# RENTAL
RENTAL_SHARE = {'max': 1, 'min': 0, 'distribution': 'normal'}
INITIAL_RENTAL_PRICE = {'max': .01, 'min': 0, 'distribution': 'normal'}
# CONSTRUCTION
# LICENSES ARE URBANIZED LOTS AVAILABLE FOR CONSTRUCTION PER NEIGHBORHOOD PER MONTH.
# If random, it will vary between 1 and 0, otherwise an integer
T_LICENSES_PER_REGION = {'alternatives': [True, False], 'distribution': 'choice'}
PERCENT_CONSTRUCTION_FIRMS = {'max': .2, 'min': 0, 'distribution': 'normal'}
# Months that construction firm will divide its income into monthly revenue installments.
# Although prices are accounted for at once.
CONSTRUCTION_ACC_CASH_FLOW = {'max': 100, 'min': 1, 'distribution': 'normal'}
# Cost of lot in PERCENTAGE of construction
LOT_COST = {'max': .7, 'min': 0, 'distribution': 'normal'}
PRIVATE_TRANSIT_COST = {'max': .5, 'min': 0, 'distribution': 'normal'}
PUBLIC_TRANSIT_COST = {'max': .5, 'min': 0, 'distribution': 'normal'}
PROCESSING_ACPS = {'alternatives': ['ARACAJU', 'BELEM', 'BELO HORIZONTE', 'BRASILIA', 'CAMPINA GRANDE', 'CAMPINAS',
'CAMPO GRANDE', 'CAMPOS DOS GOYTACAZES', 'CAXIAS DO SUL', 'CRAJUBAR', 'CUIABA',
'CURITIBA', 'FEIRA DE SANTANA',
'FLORIANOPOLIS', 'FORTALEZA', 'GOIANIA', 'ILHEUS - ITABUNA', 'IPATINGA',
'JOAO PESSOA', 'JOINVILLE', 'JUIZ DE FORA', 'JUNDIAI', 'LONDRINA', 'MACAPA',
'MACEIO', 'MANAUS', 'MARINGA', 'NATAL',
'NOVO HAMBURGO - SAO LEOPOLDO', 'PELOTAS - RIO GRANDE', 'PETROLINA - JUAZEIRO',
'PORTO ALEGRE',
'RECIFE', 'RIBEIRAO PRETO', 'RIO DE JANEIRO', 'SALVADOR', 'SANTOS',
'SAO JOSE DO RIO PRETO',
'SAO JOSE DOS CAMPOS', 'SAO LUIS', 'SAO PAULO', 'SOROCABA', 'TERESINA',
'UBERLANDIA', 'VITORIA',
'VOLTA REDONDA - BARRA MANSA'], 'distribution': 'choice'}
# Minimum value to run depends on the size of municipality 0,001 is recommended minimum
PERCENTAGE_ACTUAL_POP = {'max': 1, 'min': 0, 'distribution': 'normal'}
# Selecting the starting year to build the Agents, can be: 1991, 2000 or 2010
STARTING_DAY = {'alternatives': ['2010-01-01', '2000-01-01'], 'distribution': 'choice'}
TOTAL_DAYS = {'max': 14610, 'min': 1826, 'distribution': 'normal'}