
* ---------------------------------
*
* General settings for batch file mode
*
* ---------------------------------

*  gamsexe = c:\gams24.7\gams.exe

* Enter here the output directory for the HTML page with the report from the batch mode
 output dir = ..\batchOutput

 work dir =   ..\gams
 res dir  =   ..\results
 dat dir  =   ..\data

*scratch dir =C:\scrdir

* ---------------------------------
*
* Task specific settings for batch file mode
*
* ---------------------------------
*
  task = Import from GTAPAGG

  Input file from GTAPAGG (*.zip) = brexit
  Load land use data = OFF
  Land use data file (*.zip) = 2007LUv81
  Load Non-CO2 emissions = OFF
  Non-CO2 emissions data (*.har) = CONSLD_2011
  Generate MRIO split factors = OFF
  Fix import demand during split = OFF
  Delete intermediate GDX file = ON
  Delete intermediate HAR file = ON
  Apply SAM split = OFF
  Use manual re-aggregation = OFF
  Split information file = osd
  Manuel aggregation file = gtap_water
  Filter method = Rebalancing
  Absolute tolerance, 1.E = -10
  Minimum number of transactions = 50000
  Relative tolerance = 1.0
  Relative tolerance .E = -4
  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
  Endogenous tech shifter equations = OFF
  Print gams code to listing = offListing
  Symbol list = offSymList
  Symbol list with cross references = offSymxRef
  Profile = 0
  ProfileTol = 0.1
  Solprint = On
  Limrow = 0
  Limcol = 0

  execute=Gamsrun


  task = Simulation

  Input file (*.gdx) = brexit
  Scenario description =
  Post fix for result files =
  Scenario file = user_scenarios\Brexit
  Use pre-defined configurations = OFF
  Predefined configurations = GLOBE
  Dynamics = Comparative static
  Number of years = 5
  Time resolution = 1
  Endogenous tech shifter equations = OFF
  Regional coverage = Global model
  Region in model = Oceania
  International prices = CET_CES
  Modules = myGTAP,GTAP_AGR,GTAP_Melitz,CapVintages,Parameters
  Parameter file 1 = Parameter_extended
  Parameter file 2 = empty
  Parameter file 3 = empty
  Parameter file 4 = empty
  Parameter file 5 = 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,USA,NAmerica,LatinAmer,EU_27,gbr,MENA,SSA,RestofWorld
  Mobile factors = Land,UnSkLab,SkLab,Capital
  Factors with fixed prices =
  myGTAP file = myGTAP_dummy
  Use expansion elasticity to adjust final demand per household = ON
  Remittances sent = Driven by labor income
  Remittances received = Share on global total
  Foreign capital income sent = Driven by capital income
  Foreign capital income received = Share on global total
  Foreign aid sent = Driven by factor income
  Foreign aid received = Share on global total
  Melitz commodities = cmt-c,omt-c,vol-c,mil-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
  HETSetup = Melitz
  Fix cost nest = ON
  Pareto distribution lower limit = 0.2
  Shape parameter = 4.5
  Max cost share for HET own domestic interm. demand = 0.0
  Initialize Melitz model for shock = ON
  Foreign savings = Fixed foreign savings
  Government = Direct taxes
  Final consumption = Spending
  Regional numeraire = Exchange rate
  Regions with NUTS2 breakdown =
   = Only aggregated demand (no heterogenous firms)
  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
  Trade in VA indicators = OFF
  Store SAM in GDX = OFF
  Store benchmark = OFF
  Welfare decomposition = OFF
  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 = OFF
  quantities = ON
  Scale transactions = ON
  Global scaling factor, 1.E- = 3
  Minimum scaling factor, 1.E- = 0
  Threshold for transactions, 1.E- = 10
  Presolve steps with fixed import prices = 1
  Solve mode = Fixed foreign savings
  Use grid solve for presteps = ON
  Full model pre-solve with fixed supply = OFF
  Supress output from presolve = ON
  Print gams code to listing = offListing
  Symbol list = offSymList
  Symbol list with cross references = offSymxRef
  Profile = 0
  ProfileTol = 0.1
  Solprint = On
  Limrow = 0
  Limcol = 0
*
* --- NFM rates only
*
  for trade = 1
  for migr  = 0
  for savf  = 0
  for ntm   = 0
      ScenDriver1 = %trade%
      ScenDriver2 = %migr%
      ScenDriver3 = %savf%
      ScenDriver4 = %ntm%
      batchName = brexit_t%trade%_m%migr%_s%savf%_n%ntm%
      Scenario description = brexit_t%trade%_m%migr%_s%savf%_n%ntm%
      execute=Gamsrun
  endfor
  endfor
  endfor
  endfor
*
* --- middle of the road
*
  for trade = 0.5
  for migr  = 0.5
  for savf  = 0.5
  for ntm   = 0.5
      ScenDriver1 = %trade%
      ScenDriver2 = %migr%
      ScenDriver3 = %savf%
      ScenDriver4 = %ntm%
      batchName = brexit_t%trade%_m%migr%_s%savf%_n%ntm%
      Scenario description = brexit_t%trade%_m%migr%_s%savf%_n%ntm%
      execute=Gamsrun
  endfor
  endfor
  endfor
  endfor

*
* --- all 0/1 combination, with tariffs and NTMs driven by the same change
*
  for trade = 0 \ 1
  for migr  = 0 \ 1
  for savf  = 0 \ 1
      ScenDriver1 = %trade%
      ScenDriver2 = %migr%
      ScenDriver3 = %savf%
      ScenDriver4 = %trade%
      batchName = brexit_t%trade%_m%migr%_s%savf%_n%trade%
      Scenario description = brexit_t%trade%_m%migr%_s%savf%_n%trade%
      execute=Gamsrun
  endfor
  endfor
  endfor
