• 106 views | 3 messages Discussion: LEAP
    Topic: Inheritance of optimization scenariosSubscribe | Previous | Next
  • Fran Lallana 5/16/2017

    Hi Taylor, Charlie,

    I have been trying to build a slight variation of an optimized electricity expansion scenario, to operate in simulation mode and change some parameters, without recalculate the optimization (which would be different).

    For that purpose I created an scenario that inherits from the Optimized (Opt) that I named Opt Sens.

    In Opt Sens, I would like to exactly copy the power expansion defined by the Opt scenario, but found a little inconvenience. Because in Opt scenario, for the first 10 years there are some expansion decisions depicted in exogenous capacity variable (which is some kind of constrain for the optimization) and then, the optimization began form year 10 and ahead.

    In "Opt Sens" scenario exogenous capacity variable, I would like to paste (or inherit) the combined (exogenous + optimized) expansion of Opt scenario, the problem is that this expansion is described with the combination of exogenous capacity and new optimized capacity variables simoultaneusly.

    I can not find an easy way to combine both variables (even trying to copy and paste the resulting expression of each variable combined, but without excel`s help) or even better, to call the resulting capacity additions of Opt scenario (they should be somewhere!!) from Opt Sens simulation exogenous capacity variable.

    Could you give me some help?

    Thanks a lot!
    Fran.
  • Taylor Binnington 5/22/2017
      Best Response

    Hi Fran -

    For now, the best way to do this is to export your Capacity results to Excel from "Opt", and then copy and past them back into the "Opt Sens" Exogenous Capacity varible using LEAP's Interp() or Data() functions. Keep in mind that the "Opts Sens" scenario will then only reproduce the total installed capacity from "Opt", but not necessarily all of the individual capacity additions and retirements. If you wish, you may also automate this process using LEAP's API (happy to answer specific questions on that after, if you wish).

    We're investigating a better way to do this using LEAP's Capacity results variable, and will inform you via this thread if we have an alternative. Until then, you will likely need to do things more manually.

    Taylor

  • Fran Lallana 6/8/2017
      Best Response

    Hi Taylor,
    thanks a lot for your reply.

    Currently I'm doing as you suggest but for LEAP's standard is very uncomfortable... :)
    We are very badly accustomed by LEAP easiness.

    Best,
    Fran.