Running Modeling to Generate Alternatives with GenX
GenX includes a modeling to generate alternatives (MGA) package that can be used to automatically enumerate a diverse set of near cost-optimal solutions to electricity system planning problems. To use the MGA algorithm, user will need to perform the following tasks:
- Add a
Resource_Type
column in all the resource.csv
files denoting the type of each technology. - Add a
MGA
column in all the resource.csv
files denoting the availability of the technology. - Set the
ModelingToGenerateAlternatives
flag in thegenx_settings.yml
file to 1. - Set the
ModelingtoGenerateAlternativeSlack
flag in thegenx_settings.yml
file to the desirable level of slack. - Set the
ModelingToGenerateAlternativesIterations
flag to half the total number of desired solutions, as each iteration provides 2 solutions. - Set the
MGAAnnualGeneration
flag in thegenx_settings.yml
file to the desired MGA formulation. - Solve the model using
Run.jl
file.
Results from the MGA algorithm would be saved in MGAmax and MGAmin folders in the case folder.