Release notes
This page highlights key changes in NEMO since its initial public release. For a full history of NEMO releases, including the code for each version, see the Releases page on NEMO's GitHub site.
Version 1.8
To use NEMO 1.8 with LEAP, please ensure you are running LEAP version 2020.1.0.65 or higher.
- Julia platform upgrade: Updated NEMO to run on Julia 1.7.2, JuMP 1.0.0, and new versions of the Julia interfaces (packages) for the Cbc, CPLEX, GLPK, Gurobi, Mosek, and Xpress solvers. With this enhancement, NEMO can now be used with Gurobi 9.5, CPLEX 22.1, and Xpress 8.10-8.13, among other solver versions. See Solver compatibility for full details on compatible solvers.
Version 1.7
To use NEMO 1.7 with LEAP, please ensure you are running LEAP version 2020.1.0.57 or higher.
Multi-threading: Implemented a new paradigm for parallel processing in NEMO - replaced distributed Julia processes with multi-threading. In addition to streamlining operations that were already parallelized, this change allowed parallelization of constraint creation and results saving in
calculatescenario
. It should reduce run-time and memory use for most models. Deprecated thenumprocs
andtargetprocs
arguments forcalculatescenario
andwritescenariomodel
; they were used to select distributed Julia processes and are no longer needed. When parallel processing, NEMO uses as many threads as are available in the Julia session. This in turn is controlled by a command line argument or environment variable provided when invoking Julia (see Julia's documentation for details).Improved functionality for renewable energy targets: Increased the flexibility and simplicity of NEMO's renewable energy target calculations. Added fuel as a dimension for
REMinProductionTarget
, so this parameter now describes the fraction of a fuel's production in a region and year that must be by renewable technologies. As in earlier versions of NEMO, theRETagTechnology
parameter determines the renewability of technologies. Modified the logic for verifying compliance withREMinProductionTarget
to exclude production from storage. Removed theRETagFuel
parameter andvtotalreproductionannual
andvretotalproductionoftargetfuelannual
output variables since the new calculation method made them superfluous.Variables for generation and renewable generation: Added output variables for annual generation (i.e., production excluding production from storage) and annual generation from renewable technologies. See
vgenerationannualnn
,vgenerationannualnodal
,vregenerationannualnn
, andvregenerationannualnodal
.Minimum production share: Added
MinShareProduction
, a parameter that specifies a technology's minimum share of production of a fuel in a given region and year (excluding production from storage).Warm starts: Added two arguments to
calculatescenario
andwritescenariomodel
to enable warm starting optimization. NEMO's approach to warm starting is to take starting values for model output (decision) variables from a previously calculated scenario database. You specify the path to the previously calculated database with thestartvalsdbpath
argument; and you can optionally control which variables get starting values with thestartvalsvars
argument. These arguments can be provided either on the command line or through a NEMO configuration file. See the documentation forcalculatescenario
for more details.Bypassing optimization when results have already been calculated: Added an argument to
calculatescenario
,precalcresultspath
, that allows you to identify a previously calculated scenario database that should be used in lieu of optimizing the main scenario database passed to the function (i.e., the database named in thedbpath
argument). If you specify a previously calculated database withprecalcresultspath
, NEMO copies it over the database atdbpath
. This feature is intended for users who are calling NEMO through LEAP and want to compile results from multiple scenarios (which may have been calculated on different machines) in one LEAP area. You can useprecalcresultspath
either on the command line or through a NEMO configuration file. See the documentation forcalculatescenario
for more details.Bug fix - transmission line efficiency: Corrected an error in how NEMO calculates transmission energy losses and variable costs when the transmission modeling type is 3 (pipeline flow; see
TransmissionModelingEnabled
) and line efficiency is less than 1. The calculations now properly account for bidirectional flow through lines. As part of this fix, removed thevtransmissionbylineannual
output variable and added two variables for transmission variable costs:vvariablecosttransmission
andvvariablecosttransmissionbyts
.Windows installer enhancements for multi-user environments: Revised the NEMO Windows installer program to facilitate installations in multi-user environments (i.e., when the installer is run by one Windows user, but NEMO will be run by different Windows users). Among other changes, the new installer program installs Julia for all users. As usual, it is not necessary to uninstall older versions of NEMO before running the installer.
Other improvements: Revised NEMO's documentation to note that nodal storage modeling requires transmission modeling to be enabled for a storage's input and output fuels. See
NodalDistributionStorageCapacity
.
Version 1.6
Interest rates for technologies, storage, and transmission lines: Added parameters for interest rates for technologies (
InterestRateTechnology
), storage (InterestRateStorage
), and transmission lines (interestrate
property ofTransmissionLine
). If you specify an interest rate, NEMO uses it to calculate financing costs for new endogenous capacity, assuming the capital costs are financed at the interest rate and repaid in equal installments over the life of the capacity. The financing costs are reported in three new output variables (vfinancecost
,vfinancecoststorage
, andvfinancecosttransmission
) and enter into NEMO's cost minimization objective. They are also considered when calculating salvage values for technologies, storage, and transmission lines.Negative emissions: Revised NEMO to accommodate negative emissions from technologies. You can activate this feature by specifying a negative emission factor (
EmissionActivityRatio
). If a technology has a negative emission factor for a pollutant with an externality cost (EmissionsPenalty
), it can generate negative emission penalties (vannualtechnologyemissionspenalty
/vannualtechnologyemissionpenaltybyemission
), lowering total system costs. In this case, you may need to constrain the technology's operation to avoid an unbounded (infeasible) optimization problem. For example, if a technology can generate negative emissions of a pollutant with an externality cost, the cost of building and running the technology is lower than the externality value, and there are no limits on the technology's deployment and use, the optimization problem will be unbounded.Deprecation of technology, storage, and transmission-specific discount rates: Based on discussions with users, retired this functionality that was introduced in NEMO 1.5.
Other performance improvements: Improved the robustness of the
createnemodb
function.
Version 1.5
Technology, storage, and transmission-specific discount rates: Revised NEMO so users can specify a different discount rate for each technology and region, storage and region, and transmission line. Technology and storage-specific rates are set with the new
DiscountRateTechnology
andDiscountRateStorage
parameters. Rates for transmission lines are defined as part of the transmission line dimension. TheDiscountRate
parameter continues to provide the default discount rate for each region.Minimum utilization: Added a parameter -
MinimumUtilization
- that enforces minimum utilization rates for technology capacity.Other performance improvements: Streamlined logic for scenario database upgrades.
Version 1.4
Writing NEMO models: Added a function to write an output file representing the NEMO optimization problem for a scenario (
writescenariomodel
). This function supports common solver file formats including MPS and LP and can compress its output with Gzip or BZip2. Results from the function can be used as an input to solver performance tuning programs, such as Gurobi's parameter tuning tool and CPLEX's tuning tool.Calculating selected years: Added functionality to calculate selected years of a scenario. You can invoke this feature with a new
calcyears
argument forcalculatescenario
(andwritescenariomodel
). Calculating selected years can quickly provide results for large models. The results may not be identical to what you would get if you calculated all years, but NEMO uses several methods to reduce discrepancies between the two cases. See Calculating selected years for details.New default solver - Cbc: Changed the default solver for
calculatescenario
to Cbc. Since NEMO version 1.3, Cbc generally offers better performance than GLPK for NEMO models.Simplified parameters for inter-regional trading: Trading between two regions can now be enabled with a single row linking the regions in
TradeRoute
.New output variable - vtransmissionbylineannual: Added a variable that reports annual transmission through a transmission line in energy terms.
Bug fix - exogenous emissions: Revised
vannualemissions
so it includes any exogenously specified annual emissions (AnnualExogenousEmission
), andvmodelperiodemissions
so it includes any exogenously specified annual and model period emissions (AnnualExogenousEmission
andModelPeriodExogenousEmission
).Other performance improvements: Implemented various enhancements to improve NEMO's performance for large models, particularly those with multiple regions.
Version 1.3.1
Solver parameters in NEMO configuration files: Added support for setting solver parameters via a NEMO configuration file. Users can activate this feature by assigning a comma-delimited list of parameter name-value pairs to the
parameters
key in a configuration file'ssolver
block. The pairs should be in this form: parameter1=value1, parameter2=value2, .... See the documentation for configuration files for more information.Forcing mixed-integer optimization problems: Added an option that forces NEMO to formulate a mixed-integer optimization problem when calculating a scenario. This can improve performance with some solvers. The option can be invoked as an argument passed to
calculatescenario
(forcemip
) or in a NEMO configuration file (forcemip
key incalculatescenarioargs
block). See the documentation forcalculatescenario
and configuration files for more information.
Version 1.3
- Julia and JuMP upgrade: Updated NEMO to run on Julia 1.5.3 and JuMP 0.21.6. The new version of JuMP includes support for the most recent versions of key solvers, among them Cbc (2.10), CPLEX (12.10 and 20.1), and Gurobi (9.0 and 9.1). Note that this version of JuMP also uses a new solver abstraction layer,
MathOptInterface
, which changes how solvers are referenced when creating a JuMP model. See the documentation forcalculatescenario
for more information and examples.
Version 1.2
Ramp rates: Added support for modeling technology ramp rates. You can activate this feature with two new parameters -
RampRate
andRampingReset
.Parallel processing upgrades: Revised
calculatescenario
so users can take advantage of parallelization without having to invoke Julia'sDistributed
package and add processes manually. Introduced thenumprocs
argument, which lets users specify the number of processes to use for parallelized operations. Whennumprocs
is set, NEMO initializes new processes as needed. Refactored the queries incalculatescenario
to parallelize as many of them as possible.Xpress solver: Added Xpress as an officially supported NEMO solver. This includes incorporating Xpress in the Julia system image that's distributed with the NEMO installer program.
Installer program enhancements: Upgraded the installer program to facilitate installation when the executing user isn't an operating system administrator. Also improved the integration of the installer program with LEAP.
General error handling in
calculatescenario
: Restructuredcalculatescenario
so exceptions are trapped and presented along with information on how to report problems to the NEMO team.Other changes: Streamlined NEMO's logic for upgrading legacy database versions in
calculatescenario
. Now the functions that perform upgrades are only called when needed. Removed thecreatenemodb_leap
function since LEAP isn't using it.