• 116 views | 2 messages Discussion: LEAP
    Topic: Pakistan Starter file/Key Assumptions/Data Entry and AnalysisSubscribe | Previous | Next
  • Syed Aziz Ur Rehman 4/26/2017

    Dear all

    I started the national level energy modelling and Analysis using leap by taking advantage of the Pakistan starter file. The only reason i did this was that because i was thinking that the key assumptions in leap for the starter file might be helping because i have actual energy demand data taken from energy yearbooks so i don't need the data that might be taken from IEA used by the Pakistan starter developer.
    Now i am putting the actual total energy data for each branch which starts from 1992 till 2014. I have taken 2015 as my base year and 2020 as first scenario year. I also don't have any problem in uploading data for different fuels under each branch which collectively sums up to the total energy data for respective branches.
    When i agree to the data given in the starter file which defines activity level on the basis of assumptions given i.e. Population growth and GDP/value added services from different sectors then it should run and give me results, but it is not the case. Therefore, LEAP is giving me some errors which are related to energy intensity values defined in the key assumptions. I am attaching the snapshots of the problem i am facing. It is related to historical growth rate and years set in the Pakistan starter file. Although i changed the Years in the general parameters setting along with the actual time series data that ranges upto 2014. But still it says ''Last growth year parameter (2007) must be after first growth year parameter (2015) in historical growth''. It is because the data in the Pakistan starter file was till 2007 which i am no more using because i have only retained key assumptions data. The 2015 is the base year in my model. I don't see any 2007 in the key assumption branches now i dont know how to edit this and remove the error.
    I will really appreciate if someone guide me towards the solution..
    Thanks for reading my post...

    Aziz

    LEAP PAKISTAN ERROR.JPG
  • Emily Ghosh 5/15/2017
      Best Response

    Hi Aziz,


    I apologize for the delay in responding. Thank you for the detailed description of your problem and for the screenshots. It is very helpful.


    The error that you are seeing is associated with the "HistoricalGrowth(First Year, Last Year)" function used in the Energy Intensity expression. For info on this function, click here.


    Since the model's Base Year was changed to 2015, the years in the "HistoricalGrowth()" function is no longer valid and is causing the error you are seeing. Before resolving the issue related to the error, I suggest adjusting the Base Year, First Scenario Year and End Year in your model to reflect the data you have available:


    • Base Year: Typically, the Base Year corresponds to the first year for which you have data. Since you have historical data starting from 1992, you may want to make this your Base Year.

    • First Scenario Year: Typically, the First Scenario Year is set to the year after the last year of historical data. Since 2014 is the last year of historical data that you mentioned to have available, you may want to use 2015 as your First Scenario Year.

    • End Year: The End Year is the final year of analysis.

    Read the section entitled "Years" in the following help page for more information on this topic: https://www.energycommunity.org/Help/Supporting_Screens/Basic_Parameters_Screen.htm


    After adjusting the years, you will want to review the expressions in the model using the HistoricalGrowth() function and change the "First Year" of 1995 and "Last Year" of 2007 to reflect the actual historical period that you have data for (i.e. 1992 and 2014). You can use the search function (Edit: Find) to search for all the expressions which use the "HistoricalGrowth" function under all variables, scenarios and regions, and fix them as required. Hopefully this will get rid of the error you are seeing.


    In general, we strongly recommend that users review the key assumptions and expressions used in the Starter Data Set to understand how the model was developed. For more information on the Starter Data Sets, refer to the following documentation: https://www.energycommunity.org/documents/StarterDataSetNotes.pdf


    Hopefully this helps!


    Thanks,

    Emily