• 389 views | 10 messages Discussion: LEAP
    Topic: State or Regional Analysis in LEAP and SensitivitySubscribe | Previous | Next
  • Nnaemeka Emodi 10/13/2017

    Greetings.
    Please, how can the LEAP model be used for regional or state analysis? The country I intend modeling has states which have independent control of their energy markets and resources but are within one country. I will like to model the Resources branch (e.g. crude oil) as a country, but model the Transformation branch (e.g. transmission and distribution, electricity generation) as individual states within a country containing the Resources. Are there any means in which the analysis can be done?

    Also, how can I carry out a sensitivity analysis using LEAP model?

    My Regards
    Nnaemeka Emodi
  • Emily Ghosh 10/23/2017
      Best Response

    2 Likes

    Hi Nnaemeka,

    Thanks for your question. Yes, LEAP can be used for multi-regional or state analysis. You can create separate regions to represent each state through the Regions dialog box accessed from the General: Region menu. Add a new Region by using the green plus button at the top of the dialog box (in this case, the new "region" would be a state). For information on adding Regions, refer to the following help page: https://www.energycommunity.org/Help/Supporting_Screens/Regions.htm

    After the new regions are added, use the Region selection drop down menu (located on the main toolbar in Analysis View) to choose a region to edit. Here you can add demands, create transformation modules or include resource information and costs specific to the region you are editing.

    Resources for each region must be specified separately, such as fuel reserves and resource yields. This means that any national resource data must be divided between the different states. So if you have crude oil estimates on a national level, you will need to allocate this resource to a region (or regions) before inputting this data into LEAP.

    Note that LEAP can also model regional trade by enabling the user to specify which fraction of regional exports and imports are to/from other regions within the model. This feature can be enabled from Basic Params: Calculations by un-checking the checkbox called "Assumed no regional trade". Once enabled, you will see two new variables in the Resources branch called "In Area Export Fraction" and "In Area Import Fraction" where you can input the export and import fractions. More information on these variables can be found on the following help pages:

    Hope this helps!
    Emily

  • Nnaemeka Emodi 10/25/2017
      Best Response

    Thank you very much, Emily. How about the sub-national analysis? can the natural resources such as crude oil be allocated at the national level instead of states as described in the multi-region analysis?

    My Regards
    Nnaemeka Emodi
  • Emily Ghosh 10/26/2017
      Best Response

    2 Likes

    **This post has been edited for clarity. Clarifications are underlined.**

    Hi Nnaemeka,

    One way to deal with the national resource data is to allocate it to each of the states. For example, if there are 1000 barrels of crude oil reserves in the country, you could allocate 40% to State #1 by inputting 400 barrels the Base Year Reserve variable for this region and 60% to State #2 by inputting 600 barrels in this region. Doing this would require you to do some research on where the resources are located in the country, or you would have to make assumptions.

    Another way to model the national data is to create another region representing the country. In this case, one region in the model would represent the country, and the other regions would represent the various states.

    In the country region, you will need to add demand branches for each fuel resource (either technology branch should do) in order to populate the resource branches. These demand branches do not need to have any demands assigned to them since all of the demands will be specified for each state. Transformation modules are also not required. You can hide unused branches by going to Tree > Select Visible Branches.. Then, input the national resource data in the resource variables. Then, you will have to ensure the In-Area Export Fractions variable is specified in a way that the national resources are "exported" to the states, and adjust the In-Area Import Fractions so that the states can "import" the national resources. To do this:

    In the country region:

    • Set the In-Area Export Fraction to the % of national resources that you would like to distribute to the other regions on an annual basis. Specify 100% if all of the national resources are available for distribution. You could use a time-series function (i.e. the Interp function) if you want the fraction to change year to year.
    • Set the In-Area Import Fraction to 0% if you are assuming that resources will not be "imported" from the states to the national level.

    In each region representing each state:

    • Set the In-Area Export Fraction to 0% if you are assuming that resources will not be "exported" from the state to the national level.
    • Set the In-Area Import Fraction to the % of national resources that will be "imported" from the country region to the state. If there are imports into the state from outside the country, this value will be less than 100%.


    Once all of the parameters are inputted and the results are calculated, use the Energy Balance view to see where the imports are coming from.

    Hopefully this helps get you started!


    Thanks,
    Emily


  • Nnaemeka Emodi 10/27/2017
      Best Response

    Thank you very much, Emily. One more question, how do I perform sensitivity analysis in the LEAP model? I think there was an update which included sensitivity analysis but I can't find them in the LEAP model. Please, can you advise me on how to go about it?

    My Regards
    Nnaemeka Vincent Emodi
  • Taylor Binnington 11/3/2017
      Best Response

    1 Like

    (posted in another thread, copied and pasted here)
    -------------------------------------------------------------------

    Hi Nnaemeka,

    The ability to conduct sensitivty analyses is not natively built into LEAP. However, using LEAP's API (application programming interface) you may run the software iteratively with an ensemble of different inputs to generate an array of results, and perform whichever statistical analysis you desire on those outputs. This can be accomplished using Crystal Ball (there are some threads in the LEAP support forum on this topic which you may search) or with a custom utility, if you wish.

    Here are two related threads:

    https://www.energycommunity.org/default.asp?action=9&tid=3372&fid=22
    https://www.energycommunity.org/default.asp?action=9&tid=2781&fid=22

    Hope this helps,

    Taylor

  • Nnaemeka Emodi 11/27/2017
      Best Response

    Dear Emily,

    Greetings. In regards to the suggestion you gave where I have to develop another region as the country and allowing the export as a priority, I wanted to ask, what happens when refining capacity of the state is unable to meet the regional demand? How do I model the national region to input resources from overseas?

    Best Regards
  • Emily Ghosh 12/9/2017
      Best Response

    Dear Nnaemeka,


    The "Unmet Requirements" variable allows you to choose what happens when the demand for a resource exceeds the available resource. By default, "MeetWithImports" is selected which means that LEAP automatically imports from outside the region to meet resource demands. Other options can be seen by clicking the orange "E" button at the end of the Expression box.


    You can also specify the quantity of overseas imports in the "Resource Imports" variable if the amount of imports is known. https://www.energycommunity.org/Help/Resources/Resource_Imports.htm


    Hope this helps,

    Emily


  • Nnaemeka Emodi 2/23/2018
      Best Response

    Dear Emily,

    Greetings. I have added the demand branch in the country region with the national resources, but when I try to run the results, I keep getting an error message "Shares sum to 0%, when using shares, the sum of all immediately neighboring branches must be 100%.....". When I decided to hide the demand branch in the national region, I get another error message "No demand results calculated."

    Please, how can I resolve this issue?

    Best Regards
    Nnaemeka
  • Emily Ghosh 2/23/2018
      Best Response

    1 Like

    Hi Nnaemeka,

    At least one demand branch needs to be visible for LEAP's calculations to work. If all of the demand branches are hidden, LEAP will not calculate demands, and the "No demand results calculated" message will show.

    With regards to the "Shares sum to 0%" error, this is showing because there are neighboring branches which have the units of "percent share", but their expressions do not add up to 100%. Go to the branch path specified in the error message and update the expressions to ensure they add up to 100% (note that you can always use the Remainder(100) expression to avoid the "Shares sum to 0%" error in the future).

    Thanks,
    Emily