RUNNING MAMS IN GAMS: STEPS TO FOLLOW

Similar documents
Quintic Automatic Putting Report

Computable General Equilibrium (CGE) Modelling and Cost-Benefit Analysis (CBA) presented by

Brazil Baseline and Mitigation Scenarios

What Can We Learn From the Current Crisis in Argentina?

Government finances A long term assessment. Presented by Edwina Matos Pereira

Economy-wide (general equilibrium) analysis of Philippines mitigation potential

Rossana Merola ILO, Research Department

Issues in the Long-Term Economic Outlook for Canada

SEAWAT Viscosity and Pressure Effects. Objectives Learn how to simulate the effects of viscosity and how pressure impacts the fluid density in SEAWAT.

STATE OF THE SOLOMON ISLANDS ECONOMY & INVESTMENT CLIMATE: SETTING THE PLATFORM

GMS 10.0 Tutorial SEAWAT Viscosity and Pressure Effects Examine the Effects of Pressure on Fluid Density with SEAWAT

By making use of SAFRIM (South African Inter-Industry Macro-Economic Model) By Jeaunes Viljoen, Conningarth Economists, 1

QSPS Conference. May, 2013 Utah State University

MONETARY AND FISCAL POLICIES DURING THE NEXT RECESSION

United Nations Conference on Trade and Development. TRADE AND DEVELOPMENT BOARD (62nd session)

EFFECTS OF EXTENDING AND EXPANDING ENERGY-EFFICIENCY TAX DEDUCTION FOR COMMERCIAL BUILDINGS

Canadian Teleconference: Can the Canadian Economy Survive the Turmoil in the United States?

Fencing Time Version 4.3

The ABA Advantage: Economic Issues Update & ABA Resources

Cost and Benefit Analysis of Possible Philippine Participation in the Trans-Pacific Partnership Agreement

Quantifying the Lasting Harm to the U.S. Economy from the Financial Crisis

Great Depressions of the Twentieth Century Project

Indian Economy in Graphs. Arvind Panagariya Columbia University

The Rise of China and Breaking out the Middle- Income Trap in Latin America and the Caribbean countries: A New Structural Economics Approach

COMMENTS ON THE INDUSTRIAL POLICY: THE CASE OF TURKEY

Overview of the Philippines Action Plan for AEC Emmanuel F. Esguerra Deputy Director-General National Economic and Development Authority

The U.S. Economic Outlook

Abel M. Mateus Universidade Nova de Lisboa

Avoiding the Blind Alley China s Economic Overhaul and its Global Implications

Using MATLAB with CANoe

Diver-Office. Getting Started Guide. 2007, Schlumberger Water Services

CBO s January Baseline Sets the Stage. CRFB.org

France : Economic developments and reforms, where are we heading?

TECHNICAL NOTE HOW TO USE LOOPERS. Kalipso_TechDocs_Loopers. Revision: 1.0. Kalipso version: Date: 16/02/2017.

Lessons from NAFTA for Latin American and Caribbean Countries. World Bank January

Demographic change, long-run housing demand and the related challenges for the Irish banking sector

Ameren Oracle ebusiness CCTM Supplier

The Herzliya Conference The Economic Dimension Prof. Rafi Melnick Provost, Interdisciplinary Center (IDC) Herzliya

O F C E N M JANUARY 1998

Substitution of Energy and Capital an Its Uncertainty for China

Wealth Inequality in the United States since 1913

The U.S. Economy How Serious A Downturn? Nigel Gault Group Managing Director North American Macroeconomic Services

Diver Training Options

Lucintel. Publisher Sample

Building on Kyoto: Towards a Realistic Global Climate Change Agreement and What Australia Should Do

Economic Overview. Melissa K. Peralta Senior Economist April 27, 2017

Module 3 Developing Timing Plans for Efficient Intersection Operations During Moderate Traffic Volume Conditions

The U.S. Economic Outlook

2017 PNG Economic Survey. Rohan Fox (ANU), Stephen Howes (ANU), Nelson Atip Nema (UPNG), Marcel Schröder (UPNG and ANU)

Distributional National Accounts: Methods and Estimates for the United States

THE FUTURE OF SALES TAX REVENUE

Economic Outlook March Economic Policy Division

U.S. and Colorado Economic Outlook National Association of Industrial and Office Parks. Business Research Division Leeds School of Business

Spanish Financial System: Main Features

National and Regional Economic Outlook. Central Southern CAA Conference

Charting a Path to Lift Off? Understanding the Shifting Economic Winds

U.S. Overview. Gathering Steam? Tuesday, October 1, 2013

The Eurozone integration, des-integration and possible future developments

XC2 Client/Server Installation & Configuration

National Responses to the Eurozone Crisis

Keynesian Macroeconomics for the 21 st Century Part 3: Demand Dynamics, Inequality and Secular Stagnation

Grasshoppers, Ants and Locusts: the future of the world economy

ABA Commercial Real Estate Lending Committee

Instruction Manual. BZ7002 Calibration Software BE

The Economic Outlook. Economic Policy Division

Citation for published version (APA): Canudas Romo, V. (2003). Decomposition Methods in Demography Groningen: s.n.

The Shifts and the Shocks Martin Wolf, Associate Editor & Chief Economics Commentator, Financial Times

Energy Trends and Emissions in the Former Soviet Union

National Report Iceland. RINORD June 2018 Tryggvi Jónsson, Chairman of FRV

Economic Analysis What s happening with U.S. potential GDP growth?

More information at Global and Chinese Whey Protein Ingredients Industry, 2016 Market Research Report

Measuring Genuine Progress. Chris Stiffler Economist

Has Abenomics Revived the Japanese Economy?

2014 Economic Indicators, Trends & Observations. 51 South Main Street Janesville, WI P F RockCountyAlliance.

Oracle ebusiness CCTM Supplier: Rate Card

Effects of Common Economic Space Creation

The ICC Duckworth-Lewis-Stern calculator. DLS Edition 2016

Mac Software Manual for FITstep Pro Version 2

The Economic Outlook. Economic Policy Division

Labor Markets. Chris Edmond NYU Stern. Spring 2007

Domestic resource mobilization. Infrastructure

Very Persistent Current Accounts July Horag Choi, University of Auckland Nelson C. Mark, University of Notre Dame and NBER

ENERGY TRANSITION PATHWAYS FOR THE 2030 AGENDA IN ASIA AND THE PACIFIC

The Wisconsin and Minnesota Economies: What can we learn from each other? Noah Williams

San Francisco State University ECON 560 Summer Midterm Exam 2. Monday, July hour 15 minutes

RBC Economics Financial Update Dawn Desjardins

Lab 4: Root Locus Based Control Design

PROVINCE OF SASKATCHEWAN INVESTOR PRESENTATION

THE ICELANDIC ECONOMY AN IMPRESSIVE RECOVERY BUT WHAT CHALLENGES LIE AHEAD?

Fastball Baseball Manager 2.5 for Joomla 2.5x

On the Allocation of Time A Quantitative Analysis of the US and France

Bob Costello Chief Economist & Vice President American Trucking Associations. Economic & Motor Carrier Industry Trends. September 10, 2013

Getting Started with the LabVIEW Toolkit for LEGO MINDSTORMS NXT

The Global Economy: Sustaining Momentum

Database of Winds and Waves. -internet version-

The Australia US FTA: implications for international education

Sail Chart Drafter for Deckman v.2

Chapter Four. Economic Performance by President. It is better to be roughly right than precisely wrong. - John Maynard Keynes

Taking Your Class for a Walk, Randomly

As Good as it Gets. The Aging Expansion Powers On... but for How Much Longer? Andrew J. Nelson Chief Economist USA, Colliers International

Transcription:

RUNNING MAMS IN GAMS: STEPS TO FOLLOW MARTÍN CICOWIEZ Presentation for the Workshop of the UNDP UNDESA World Bank LAS Project Assessing Development Strategies to Achieve the MDGs in the Arab Region, Cairo, April 2-5, 2007

OVERVIEW MAMS is coded in GAMS (General Algebraic Modeling System). MAMS ZIP folder. MAMS main files. How to (quickly) run MAMS using GAMS IDE. How to explore MAMS results. Some results. How to install GAMS 22.4.

MAMS MAIN FILES test-mdg.dat dmod.gms test.mdg.xls dmod2.gms (restart) dsim.gms (restart) drep.gms (restart)

MAMS MAIN FILES DMOD.GMS. First part of core model file. Country data set is read in and processed including SAM-balancing for rounding errors. DMOD2.GMS. Second part of core model file. Model is developed, including dynamic base run. DSIM.GMS. Simulation file. Restarted from DMOD2.GMS. All simulations are run in this file. The first simulation is the dynamic base run, which should be the same as the base run from DMOD2. DREP.GMS. Report file. Restarted from DSIM.GMS. File for: a) declaring parameters for the reports; and b) All the results are written to a GDX file called report. For viewing it use GAMSIDE.

SOME MAMS ANCILLARY FILES TEST-MDG.DAT. Include file for DMOD.GMS with MDG dataset designed to test the model. Data may be read in using three alternative methods. TEST-MDGGDX.INC. Include file for TEST-MDG.DAT that reads in data from Excel using a GDX LOADDC statement. TEST-MDG.XLS. Excel file from which TEST-MDGGDX.INC reads in data. DIAGNOSTICS-DATA.INC. Include file for DMOD2.GMS. It defines selected parameters and displays and generates information that may be useful when debugging a model.

MODEL FILE In DMOD2 two models are solved: i) LOGCALIBMOD to calibrate logistic functions; and ii) CGEMCPREC. The CGE model can be solved using two different methods: multi-pass (one year at a time); or single-pass (all years together). In DMOD2 the CGE model is solved with two alternative closures for TFP: i) TFP is endogenous and GDP growth is exogenous; and ii) TFP is exogenous and GDP growth is endogenous. Naturally, GDP growth rate in (ii) will be the same as in (i).

MAMS DATA FILES A MAMS database is comprised of the following two files: <country>mdg.dat; and <country>-mdg.xls. (Notice that MAMS provides alternatives for reading the database). The MAMS modeling system comes with some example databases. The selection of the database to use is made in DMOD.gms. Search for the section labeled INCLUDE ONE DATA SET. As an example, we will use the database files test-mdg.dat and testmdg.xls.

GAMS IDE (INTEGRATED DEVELOPMENT ENVIRONMENT) A general text editor with the ability to launch and monitor the compilation / execution of GAMS models. Progress of a compilation / execution can be monitored in the process window. The process window is also used as a navigation tool to locate syntax errors in the source code and to find various anchor points in the listing file. The IDE also facilitates the selection of default solvers and manages GAMS parameters on a file by file basis. (As an alternative, use a more powerful text editor as TextPad combined with DOS window to run GAMS).

FIRST TIME WITH MAMS 1. Save all model files in a dedicated directory. 2. Create a subdirectory named "save. 3. Create a file project in the MAMS folder (i.e., Use File Project New Project). All model files need to be in the project folder. 4. Select one of the accompanying country data sets in dmod.gms 5. Run the following GAMS model files using the save and restart feature: GAMS dmod s=save\dmod GAMS dmod2 r=save\dmod s=save\dmod2 GAMS dsim r=save\dmod2 s=save\dsim GAMS drep r=save\dsim s=save\drep

SELECTING A MAMS DATABASE

RUNNING DMOD.GMS

RUNNING DMOD2.GMS

THE BASELINE SCENARIO 90 85 80 75 70 65 60 55 50 real gdp factors cost GDPREALFC 45 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015

THE BASELINE SCENARIO 120 gov-ddebt-gdp-rat gov-fdebt-gdp-rat 110 100 90 80 70 60 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015

THE BASELINE SCENARIO 2.5 2 real wages f-labn f-labs f-labt avg 1.5 1 0.5 0 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015

THE BASELINE SCENARIO 24 22 20 18 16 14 12 10 8 6 4 wage gaps f-labs/flabn f-labt/flabs f-labt/flabn 2 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015

THE BASELINE SCENARIO 11 10 unemployment rate (%) f-labn f-labs f-labt 9 8 7 6 5 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015

THE BASELINE SCENARIO 400 350 300 labor supply f-labn f-labs f-labt 250 200 150 100 50 0 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015

THE BASELINE SCENARIO 0.17 0.16 0.15 0.14 0.13 0.12 0.11 0.1 0.09 0.08 0.07 MDG 4: under five mortality rate goal2015 SIMUL 0.06 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015

MACRO CLOSURE RULE BASELINE (DMOD2.GMS) Government. Direct taxes are endogenous. Government savings are a residual. Government investment necessary to cover capital needs. Government consumption is exogenous. Government debt follows an exogenous path. External Sector. Small open economy. RER adjusts to equilibrate the current account BoP. Savings from ROW is implicitly fixed because values are imposed for: foreign debt, transfers from/to ROW; and FDI. Savings-Investment. Private investment is a fixed proportion of absorption. The savings rates for domestic non-government institutions are endogenous. Factor Markets. Labor can be unemployed with a minimum wage. Labor supply depends on population growth and educational system.

DEFINITION OF MDG SIMULATIONS IN DSIM.GMS NAME TARGETED MDG FINANCING base - - mdg2-fg MDG2 foreign grants mdg2-tax MDG2 domestic taxes mdg2-fb MDG2 foreign borrowing mdg2-db MDG2 domestic borrowing mdg45-fg MDGs 4 and 5 foreign grants mdg45-tax MDGs 4 and 5 domestic taxes mdg45-fb MDGs 4 and 5 foreign borrowing mdg45-db MDGs 4 and 5 domestic borrowing mdg7-fg MDGs 7a and 7b foreign grants mdg7-tax MDGs 7a and 7b domestic taxes mdg7-fb MDGs 7a and 7b foreign borrowing mdg7-db MDGs 7a and 7b domestic borrowing mdg-fg all MDGs foreign grants mdg-tax all MDGs domestic taxes mdg-fb all MDGs foreign borrowing mdg-db all MDGs domestic borrowing

RUNNING DSIM.GMS

RUNNING DREP.GMS

REPORT.GDX

REAL GDP UNDER DIFFERENT SCENARIOS 200 190 180 170 160 150 140 130 120 110 REAL GDP FACTOR COST (2003=100) base mdg-fg mdg-tax mdg-fb mdg-db 100 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015

MDG 2 UNDER DIFFERENT SCENARIOS 1 0.9 0.8 0.7 VALUE MDG 2 goal2015 base mdg-fg mdg-tax mdg-fb mdg-db 0.6 0.5 0.4 0.3 0.2 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015

MDG 2 UNDER DIFFERENT SCENARIOS 1 0.9 0.8 VALUE MDG 2 goal2015 base mdg2-fg mdg45-fg mdg7-fg 0.7 0.6 0.5 0.4 0.3 0.2 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015

MDG 2 UNDER DIFFERENT SCENARIOS

EXPLORE RESULTS IN REPORT.GDX

INSTALLING GAMS The last version of GAMS (General Algebraic Modeling System) can be downloaded free of charge from <http://download.gams-software.com/>. The demo version comes with some restrictions on the model size. In order to run MAMS a GAMS license is needed. The GAMS software can be used to solve non-linear equations systems.

GAMS Using common notation, QA a { agr, mnf svc} a =, { lab cap} f =, = φ a f QF Using GAMS notation, δ f fa SET ; a /agr,mnf,svc/ f /lab,cap/ QA =E= phi(a)*prod(f, QF(f,a)**delta(f,a));

REFERENCES Brooke, Anthony; Kendrick, David; Meeraus, Alexander and Raman, Ramesh (2006). GAMS: A User's Guide. GAMS Development Corporation. Kalvelagen, Erwin (????). Modeling with GAMS. Chapter 1. GAMS Development Corporation. GAMS (2006). Installation Notes for PC. GAMS Development Corporation.