forked from llorracc/cstwMPC
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdo_mid.py
26 lines (23 loc) · 794 Bytes
/
do_mid.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
'''
This file will run the two main specifications of the cstwMPC project: FBS-style
aggregate shocks, perpetual youth, matching net worth. Will run both beta-point
and beta-dist versions.
'''
import os
here = os.path.dirname(os.path.realpath(__file__))
my_path = os.path.join(here,'')
path_to_models = os.path.join(my_path,'Code')
path_to_options = os.path.join(path_to_models,'Options')
# Set up basic options
os.chdir(path_to_options)
exec(open('UseUniformBetaDist.py').read())
exec(open('DoStandardWork.py').read())
# Run beta-point model
exec(open('MainSpecPoint.py').read())
os.chdir(path_to_models)
exec(open('cstwMPC_MAIN.py').read())
# Run beta-dist model
os.chdir(path_to_options)
exec(open('MainSpecDist.py').read())
os.chdir(path_to_models)
exec(open('cstwMPC_MAIN.py').read())