• 143 views | 3 messages Discussion: LEAP
    Topic: Referencing of ResultsSubscribe | Previous | Next
  • Biljana Cherepnalkoska 6/26/2018

    Dear All,

    I have one issue upon writing formula syntax. I would like to reference export of coal as 30 % of total production for each year. I have developed formula for exporting of el.generation as 30 % of total demand as follows:
    0.30*Demand:Energy Demand Final Units[Thousand TOE; Fuel=Electricity] and this gives correct results. But for coal referencing production I could not manage it.

    Can you please give me some idea?

    Thank you in advance.

  • Emily Ghosh 6/29/2018
      Best Response

    Hi Biljana,

    If you are trying to reference a result variable for coal production within the coal production module, this will give you an error. You can only reference result variables for results calculated before the coal production module (LEAP's calculations start at the top of the tree to the bottom).

    Since coal production (before considering module imports and exports) is equal to the coal demand, you can add up the coal demands in the demand and transformation branches that consume coal, and reference the export of coal as 30% of total coal demands (similar to how to you created the expression for electricity exports). Your expression may look something like this:

    0.30 * (Demand:Energy Demand Final Units[Thousand TOE, Fuel=Coal bituminous] + Transformation\Electricity Generation:Inputs[Thousand TOE, Fuel=Coal bituminous])

    Hope this helps!
    Emily

  • Biljana Cherepnalkoska 7/6/2018
      Best Response

    Thank you very much, I think this will help so I can simulate real situation.

    Thanks again.

    All the best,

    Biljana