********************************************************************
*
* Standard test suite for GTAPinGAMS
*
* Since:  July 2015
* Author: Wolfgang Britz
*
********************************************************************

 output dir = ..\batchOutput
 work   dir = ..\gams
 res    dir = ..\results
 dat    dir = ..\data
 scrdir = d:\scrdir

*---------------------------------
*
* Generate data sets
*
*---------------------------------
*
  task = Import from GTAPAGG

  Input file from GTAPAGG (*.zip) = 57x10
  Load land use data = ON
  Land use data file (*.zip) = 2007LUv81
  Filter method = Rebalancing
  Absolute tolerance, 1.E = -6
  Minimum number of transactions = 1000
  Relative tolerance = 1.0
  Relative tolerance .E = -6
  Use grid solve = ON
  Number of stepwise increases of thresholds = 3
  Penalty for deviation from = Private consumption, Government consumption, Investments,Intermediate consumption,Factor income plus bop, GDP
  Reduced thresholds only in combination = OFF
  Reduced relative tolerance = 1.0
  Reduced relative tolerance .E = -2
  Number of years = 10
  Time resolution = 1
  Print gams code to listing = offListing
  Symbol list = offSymList
  Symbol list with cross references = offSymxRef
  Profile = 0
  ProfileTol = 0.1
  Solprint = Silent
  Limrow = 0
  Limcol = 0

  execute=Gamsrun

*---------------------------------
*
* Perform runs
*
*---------------------------------
    task = Simulation

  Input file (*.gdx) = 57x10
  Post fix for result files =
  Scenario file = end_and_tp_shocks\factor_Specific_TP_nam
* Scenario file = policy_shocks\tariffs
  Use pre-defined configurations = ON
  Dynamics = Comparative static
  Number of years = 20
  Time resolution = 1
  Regional coverage = Global model
  Region in model = Oceania
  International prices = CET_CES
  Modules =
  Modules = Paramater
  Parameter file 1 = Parameter_extended
  Parameter file 2 = empty
  hide_DemandSystem = CDE
  Absolute tol.\nfor small imports, 1.E = -10
  Relative tol.\nfor small imports, 1.E = -10
  Residual region = NAmerica
  Numeraire products = pdr-c,wht-c,gro-c,v_f-c,osd-c,c_b-c,pfb-c,ocr-c,ctl-c,oap-c,rmk-c,wol-c,frs-c,fsh-c,coa-c,oil-c,gas-c,omn-c,cmt-c,omt-c,vol-c,mil-c,pcr-c,sgr-c,ofd-c,b_t-c,tex-c,wap-c,lea-c,lum-c,ppp-c,p_c-c,crp-c,nmm-c,i_s-c,nfm-c,fmp-c,mvh-c,otn-c,ele-c,ome-c,omf-c,ely-c,gdt-c,wtr-c,cns-c,trd-c,otp-c,wtp-c,atp-c,cmn-c,ofi-c,isr-c,obs-c,ros-c,osg-c,dwe-c
  Numeraire regions = Oceania,EastAsia,SEAsia,SouthAsia,NAmerica,LatinAmer,EU_28,MENA,SSA,RestofWorld
  Mobile factors = Land,UnSkLab,SkLab,Capital
  Factors with fixed prices =
  myGTAP file = myGTAP_GTAP_AGR
  Use expansion elasticity to adjust final demand per household = ON
  Remittances sent = Fixed
  Remittances received = Fixed
  Foreign capital income sent = Fixed
  Foreign capital income received = Fixed
  Foreign aid sent = Fixed
  Foreign aid received = Fixed
  Melitz commodities =
  Fix cost nest = ON
  Pareto distribution lower limit = 0.5
  Shape parameter = 4.6
  Max cost share for HET own domestic interm. demand = 0.0
  Initialize Melitz model for shock = ON
  Foreign savings = Global equal returns to capital
  Government = Tax income
  Final consumption = Spending
  Regional numeraire = Exchange rate
  Factors with factors tax udates = Land,UnSkLab,SkLab,Capital,NatRes
  Products with consumption udates = pdr-c,wht-c,gro-c,v_f-c,osd-c,c_b-c,pfb-c,ocr-c,ctl-c,oap-c,rmk-c,wol-c,frs-c,fsh-c,coa-c,oil-c,gas-c,omn-c,cmt-c,omt-c,vol-c,mil-c,pcr-c,sgr-c,ofd-c,b_t-c,tex-c,wap-c,lea-c,lum-c,ppp-c,p_c-c,crp-c,nmm-c,i_s-c,nfm-c,fmp-c,mvh-c,otn-c,ele-c,ome-c,omf-c,ely-c,gdt-c,wtr-c,cns-c,trd-c,otp-c,wtp-c,atp-c,cmn-c,ofi-c,isr-c,obs-c,ros-c,osg-c,dwe-c
  Output = GUI,GDX
  Trade in VA indicators = OFF
  Store SAM in GDX = OFF
  Store benchmark = ON
  Welfare decomposition = ON
  Post model regional and sector aggregation = OFF
  Aggregation file = 10x10
  Solution algorithm = CNS
  Option file Conopt = 2
  Kill bounds = OFF
  Algorithm for NLP = CONOPT
  Algorithm for CNS = CONOPT4
  Use CNS first = ON
  Option file Path = 1
  Maximal seconds for one solve = 1000
  Number of repeated solves = 3.0
  FixAtBounds with CNS = OFF
  Zero iterations benchmark = OFF
  Zero iterations shock = OFF
  Substitute out\nimport/domestic\n prices = ON
  Armington\n prices = ON
  quantities = ON
  Global scaling factor, 1.E- = 3
  Scaling exponent            = 1
  Minimum scaling factor, 1.E- = 0
  Threshold for transactions, 1.E- = 10
  Presolve steps with fixed import prices = 0
  Solve mode = Fixed foreign savings
  Use grid solve for presteps = ON
  Full model pre-solve with fixed supply = ON
  Supress output from presolve = ON
  Print gams code to listing = offListing
  Symbol list = offSymList
  Symbol list with cross references = offSymxRef
  Profile = 0
  ProfileTol = 0.01
  Solprint = OnAfterInfes
  Limrow = 0
  Limcol = 0



  for config = GLOBE \ MIRAGE \ GTAP Standard \ GTAPinGAMS \ ENVISAGE \ CGEBOX \ CGEBOX_plus
* for config = ENVISAGE

               Predefined configurations = %config%
               batchName = %config%
               Scenario description = %config%
               execute=Gamsrun

  endfor
