• 242 views | 4 messages Discussion: LEAP
    Topic: Determining capacity based on a generation target Subscribe | Previous | Next
  • Paolo Cozzi 3/26/2025

    Is there a way in simulation mode to have the capacity for a particular grid process be determined by the total electricity demand? For instance, if I want solar to generate 50% of the total electricity for the country. I have tried to crudely reverse engineer it, and while I can get the expression Demand:Final Energy Demand[MWh, Fuel=Electricity] to work and I can get basic functions to work with it (e.g. divide by 8760, divide by a rough capacity factor), but if I try to do any expressions related to the year - e.g. Interp, or If(Year>X...), it stops working and the value becomes zero.

    I'm hesitant to use optimization mode at this stage for performance reasons.

    UPDATE: It weirdly seems to function in the table at the bottom in analysis view, but then in results view it gives me zero as a result when I try to use the expression Demand:Final Energy Demand[MWh, Fuel=Electricity]/8760/0.3
  • Charlie Heaps 3/26/2025
      Best Response

    Hi Paolo,

    The most basic way to do this would be to use the PercentShare dispatch rule. Then you can simply specify that solar gets 50% in the Process Share variable. You should not need to write any complex expressions to achieve this. That variable only appears when some processes are set to use the PercentShare dispatch rule. Both these variables are specified at Transformation processes. You can actually specify different dispatch rules for different processes but I don't recommend that.

    You can separately specify whether a Transformation module will include capacity data. Do that by editing the Transformation module properties screen shown here. If you do include capacity data, then you can also specify a Planning Reserve Margin (at the module branch, and then use either the Exogenous Capacity or Endogenous Capacity variables to specify capacity additions and retirements. LEAP will automatically add new plants to try and maintain the specified reserve margin based on the processes you list in the endogenous capacity screen. Note that you can also specify a variable called Capacity Credit, which determines how much each process counts toward the planning reserve margin. Baseload plants typically have a capacity credit of 100% but variable renewable processes may be much less.

    Hope this helps!

    Charlie

    ModProp.png
  • Paolo Cozzi 3/27/2025
      Best Response

    Thanks, Charlie. Yeah, I guess I was trying to get LEAP to figure out for me how much capacity of different types it needed to add to get me to that generation mix, but when I write that out it seems like that is definitely an optimization mode problem.
  • Charlie Heaps 3/28/2025
      Best Response

    By using the endogenous capacity variable you can also do this in simulation mode as described previously.