• 111 views | 2 messages Discussion: LEAP
    Topic: IBC automatically deactivatesSubscribe | Previous | Next
  • Justin Chan 3/11/2024

    Hi,

    I'm trying to use IBC in my fairly large national model. I've already activated all the prerequisites and I am able to put the tick mark on IBC in the settings page. However, once I close the settings page, the IBC option automatically deactivates. Nothing happens once I close the settings page and it doesn't check for IBC compliance. Any work around to this?

    Furthermore, I have an existing model with optimization results already calculated. Is it possible to get the IBC results without having to rerun the optimization (which takes several hours to complete)?

    Thanks in advance!

    Regards,
    Justin
  • Jason Veysey 3/27/2024
      Best Response

    Hi, Justin -

    I'll ask my colleagues to reply to your question about IBC, but I can answer the part about preserving optimization results. This is possible with NEMO's functionality for reusing precalculated results. Basically, you have to do the following:

    1) Save the NEMO scenario database with the calculated results. You can do this after you calculate a scenario in LEAP by:
    a) Opening the LEAP working directory (normally \_Work\0 under the LEAP settings folder, whose path can be verified at Settings -> Folders in LEAP).
    b) Finding the .sqlite file corresponding to the scenario, and moving it to another folder. The file will be named NEMO_[scenario id].sqlite, where [scenario id] is LEAP's ID number for the scenario. Example: NEMO_255.sqlite. You can verify the ID number for a scenario using the LEAP API and a script (for more on this, see LEAP's help).
    Note that if you save your model in LEAP, LEAP will delete NEMO scenario databases in the working directory unless you've activated Settings -> Optimization -> Keep Intermediate Results.

    2) Adding a NEMO configuration file to your model, and setting precalcresultspath in the calculatescenarioargs block of the file to the path of the folder containing the saved NEMO scenario database. See NEMO's help page on configuration files for full details and examples.

    Once you've taken these steps, your model will always use the precalculated results whenever you calculate the corresponding scenario in LEAP. The optimization calculations will in effect be bypassed. To tell NEMO to recalculate the scenario, comment out or delete the precalcresultspath line in the NEMO configuration file, and recalculate in LEAP.

    Thanks,

    Jason