Optimize

See also: Analysis View, Transformation Analysis, Introduction to Optimization, Specifying Capacity Data

This variable, specified at the level of an individual Transformation module is used to control switch on partial optimization - controlling whether a particular module's calculations for a given scenario are carried out using LEAP's optimization or simulation methodologies.  

You can control which scenarios use optimization by simply editing the Optimize variable in LEAP in any given scenario.  When this variable is set to Yes, LEAP will use NEMO along with the fastest solver installed on your PC.  When set to No, LEAP will use its accounting and simulation calculations.

For finer grade control, you can even make use of different solvers to calculate different scenarios.  This can be useful for checking that different solvers yield the same results.  In some rare cases, different solvers may yield slightly different results (most often due to optimizations of the solver code designed to speed up calculations).  The allowable keywords used for the Optimize variable are currently as follows:

  • Yes: Optimize using NEMO and the fastest available solver.

  • No: Use LEAP's own accounting and simulation calculation methods

  • NEMO(GLPK): Optimize using NEMO and the GLPK solver

  • NEMO(Cbc): Optimize using NEMO and the Cbc solver

  • NEMO(CPLEX): Optimize using NEMO and the CPLEX solver

  • NEMO(GUROBI): Optimize using NEMO and the GUROBI solver

  • NEMO(HIGHS): Optimize using NEMO and the HIGHS solver

  • NEMO(MOSEK): Optimize using NEMO and the MOSEK solver

  • NEMO(XPRESS): Optimize using NEMO and the Fico XPress solver

The commercial solvers CPLEX, GUROBI, and XPress must be purchased and installed separately from LEAP and NEMO. MOSEK is installed with NEMO but you must have a properly purchased and installed license file for MOSEK in order for it to calculate. Use the orange  Exp button () in the data entry table to quickly choose a framework and solver from among those installed (as shown on right).  

You cannot conduct optimization calculations for Current Accounts and so this variable is only available in scenarios (not in Current Accounts).  

If you switch on Full Energy System Optimization, then this variable will no longer appear and any settings for it will be ignored. That is, you cannot simultaneously do both full and partial energy system optimization in a single scenario.  However, you can use these different methods in different scenarios.

Only one module can be enabled for partial optimization.  If you set the Optimize variable to Yes in more than one module then LEAP will report an error during calculations.