MESSAGE Robust Decision Making Framework Code

GAMS model code of MESSAGE Robust Decision Making Framework available for download

This webpage provides the source code of the MESSAGE Robust Decision Making Framework which is described in the paper Risk Hedging Strategies under Energy System and Climate Policy Uncertainties, to appear in the "Handbook of Risk Management in Energy Production and Trading", edited by Raimund Kovacevic, Georg Pflug and Maria Vespucci.

GAMS Implementation

For easy adaptability the Robust Decision Making Framework version of MESSAGE, the model has been re-implemented in the widely used GAMS (General Algebraic Modeling System) language. The GAMS code is modular and consists of several parts, that is, the main model code, two files that specificy the model structure and parametrize the deterministic core model, and two additional files that contain the stochastic input to the model. A list of these files follows:

  • stochastic_model_Krey_Riahi.gms - main model code
  • set_definition.gms - definition of model structure
  • parameter_definition.gms - deterministic model parameters
  • stochastic_parameter.gms - some stochastic model settings
  • stochastic_scenario.gms - sampled stochastic parameters

The ZIP archives below contain the first four files specified above combined in a single ZIP file and, in addition, a selection of stochastic_scenario.gms files with different sample sizes N. Note that model run times vary significantly between the deterministic model (few seconds) and stochastic version with larger sample sizes (N = 20000, 20-40 minutes). For running the stochastic model version with larger sample sizes a high performance Linear and/or Quadratic Programming solver (e.g. CPLEX) is required where interior point methods have shown to perform better than simplex methods.

Print this page

Last edited: 19 July 2013


Volker Krey

Deputy Program Director


T +43(0) 2236 807 415

Keywan Riahi

Program Director


T +43(0) 2236 807 491

International Institute for Applied Systems Analysis (IIASA)
Schlossplatz 1, A-2361 Laxenburg, Austria
Phone: (+43 2236) 807 0 Fax:(+43 2236) 71 313