SlideShare a Scribd company logo
Stochastic
    Optimization:
    Solvers and Tools
    Michael R. Bussieck
    MBussieck@gams.com
    GAMS Software GmbH
    http://www.gams.de

    Stochastic Optimization in the Energy Industry
    Aachen, Germany, April 19-20, 2007
1
GAMS Development / GAMS Software

      • Roots: Research project
        World Bank 1976
      • Pioneer in Algebraic
        Modeling Systems
        used for economic modeling
      • Went commercial in 1987
      • Offices in Washington, D.C   • Professional software tool
        and Cologne                    provider
                                     • Operating in a segmented
                                       niche market
                                     • Broad academic &
                                       commercial user base
                                       and network

2
GAMS at a Glance
                       General Algebraic Modeling System:
                         Algebraic Modeling Language,
                         Integrated Solver, Model
                         Libraries, Connectivity- &
                         Productivity Tools
                       Design Principles:
                       • Balanced mix of declarative and
                         procedural elements
                       • Open architecture and interfaces
                         to other systems
                       • Different layers with separation of:
                         – model and data
                         – model and solution methods
                         – model and operating system
                         – model and interface
3
AML and Stochastic Programming (SP)
    • Algebraic Modeling Languages/Systems good way to
      represent optimization problems
      – Algebra is a universal language
      – Hassle free use of optimization solvers
      – Simple connection to data sources (DB,
        Spreadsheets, …) and analytic engines (GIS,
        Charting, …)
    • Large number of (deterministic) models in production
      – Opportunity for seamless introduction of new
        technology like Global Optimization, Stochastic
        Programming, …
      – AML potential framework for SP
4
Stochastic Programming Claims and ‘Facts'
    • Lots of application areas (Finance, Energy,
      Telecommunication)
    • Mature field (Dantzig ’55)
    • Variety of SP problem classes with specialized
      solution algorithms (e.g. Bender’s Decomposition)

    • Compared to deterministic mathematical
      programming (MP) small fraction
       • Only 0.2% of NEOS submission to SP solvers
    • No/few commercially supported solvers for SP
    • Various frustrations with industrial SP projects
5
Some Stochastic Programming Classes




     Source: G. Mitra
6
Chance Constraints




    • β is the reliability level

7
Dynamic Representation




8   Source: G. Mitra
Two-Stage SLP with recourse




    •   x first-stage decision variables
    •   yw second-stage decision variables
    •   c, fw objective coefficients
    •   A,b first-stage coefficients
    •   Bw,Dw,dw second-stage random parameters
9
Multi-Stage SLP with recourse




10
Discrete distribution (Two-stage SLP)




11
Deterministic Equivalent (DE)
     • Discrete Distribution/Scenarios
     • Standard (Mixed Integer Nonlinear) Linear Program
       with block structure (opportunity for special purpose
       algorithms)
     • Non-anticipativity (or locking) constraints
       – Explicit by new constraints (Split-variable
          representation maintains block structure)
       – Implicit through variable substitution
     • Size equivalent to number of possible realizations
       (i.e. exponential in the number of random variables)
     • Size of LP can quickly explode
12
Personalized Software Overview
     • SP Solvers
       – Standard LP Solvers
       – SP solvers based on decomposition
     • Modeling Tools
       – SMPS (core, time, stochastic)
       – Extension to AML
       – APIs
     • Others
       – Scenario (tree) management
       – Visualization of results

13
Stochastic Programming Solvers
     • LP solver
       – Interior point methods seem to be better than simplex
     • All other ready to use solver (e.g. NEOS) for n-stage SP
       with recourse:
       – DECIS, Infanger (2-stage)
       – FortSP, OptiRisk
       – OSL/SE, IBM (discontinued)
       – Academic codes: MSLiP (Gassmann), bnbs
          (Altenstedt), ddsip (Schultz et. al) (2-stage MIP), …
     • SLP-IOR (Mayer/Kall) started in 1992
       – Model management system for SLP
       – Rich solver library (21) for 18 SP model types
14
DECIS
     • Solves two-stage stochastic linear programs with
       recourse
     • Two-stage decomposition (Benders)
     • Stores only one instance of the problem and
       generates scenario sub-problems as needed
     • LP engine for sub-problems CPLEX or MINOS
     • Solution Strategies
     – Universe problem (all scenarios)
     – Sampling: Crude Monte Carlo/Importance sampling


15
SP Modeling Tools
     • Stochastic MPS
       – make it easy to convert existing deterministic LP into
          SLP
       – Add information about dynamic and stochastic
          structure.
     • Core file (deterministic problem)
     • Time file (map core file dynamic structure into stages)
     • Stoch file (information about the random variables)
     • SMPS format is extremely flexible exceeding the
       capability of any existing stochastic programming
       solver
     • Difficult for a human to manage
16
SP Modeling Tools cont.
     • Algebraic Modeling Languages
       – Similar to SMPS:
         • Supply time/stage map
         • Supply stochastic information
       – Integrated in language: AIMMS, GAMS, Mosel
       – Extensions: SAMPL, SMPL, StAMPL
     • API
       – OSL/SE (discontinued)
       – COIN-OR Stochastic Modeling Interface (SMI)
         https://projects.coin-or.org/Smi
     • Gear towards generating and solving DE
17
18
Other Tools and Frameworks
     • Scenario (tree) management
       – Generation
         • From random variables to scenarios
         • SAMPL, SMPL, AIMMS, Mosel tools for tree generation
       – Reduction
         • ScenRed, (Römisch et. al.)
     • Framework
       – SLP-IOR
       – SPInE (Stochastic Programming Integrated
         Environment), OptiRisk
         • Special purpose scenario generators
         • Connection to SAMPL and SMPL
         • FortSP SP solver
20
ScenRed (Römisch et. al.)
                        • Find good approximation of
                          original scenario tree of
                          significant smaller size.




21
Observations
     • Skills for SP Application
       – Application domain expert
       – Modeling expert
       – Statistic/Stochastic expert (scenario generation)
       – Algorithmic expert
     • Focus has shifted from solving SP to
       represent/model SP
     • Little progress in specialized solver technology
     • GUPOR: Large Scale Stochastic Programming: Still
       an unsolved problem in OR (Birge, 2006)

22
GAMS Approach to SP
     • Emphasis on performance:
       – Support 64bit OS to overcome memory issues
       – Efficient out-of-core solver runs
       – Reduce SP problem size (GAMS/ScenRed)
       – Make professional special purpose SP solvers
         available
         • GAMS/DECIS (GAMS/OSL-SE)
       – Utilize emerging grid computing technology
       – High performance data exchange
     • Minor modifications to GAMS language
       – Emphasize functionality over beauty
23
Wait-and-see Model
     • Independent problems → Solve in parallel
     • GAMS Grid Facility
       – Supports SMP and various grid engines

                     A pool of connected computers managed and
                     available as a common computing resource

                     • Effective sharing of CPU power

                     • Massive parallel task execution

                     • Scheduler handles management tasks

                     • E.g. Condor, Sun N6 Grid Engine, Globus

                     • Can be rented or owned in common

24
Examples
     •   Too few (lots of repeats)
     •   Too simple
     •   Difficult to reproduce
     •   Important steps in example missing
         – Creating stochastic data/scenarios
         – Analyzing results (vast amount of data)


     • Power Expansion Problem (GAMS/DECIS, AIMMS)
       – Simple, small, demand scenarios given
       – But at least reproducible
25
Power Expansion Problem
     • Determine capacity expansion for different power plants
       (coal, hydro, nuclear) based on uncertain demand
     • Cost structure: capital cost + operating cost
     • Demand given as load block:
      GW

                peak


                                 base


           0                                        24    hours
     • Additional constraint: No nuclear in peak.
26   • Recourse: Purchase electricity
Conclusion
     • Stochastic Programming still challenging and
       developing field
       – GUPOR: Uncertainty: An OR Frontier
          (Greenberg, 2006)
     • Lack of solution technology for n-stage SLP
       limits the dissemination of SP
     • Reduce the skill level for SP applications
     • Collection of comprehensive & reproducible
       examples could help to spread the word
27
Contacting GAMS

      Europe:                       USA:
          GAMS Software GmbH           GAMS Development Corp.
          Eupener Str. 135-137         1217 Potomac Street, NW
          50933 Cologne                Washington, DC 20007
          Germany                      USA
          Phone: +49 221 949 9170      Phone: +1 202 342 0180
          Fax: +49 221 949 9171        Fax:     +1 202 342 0181
          http://www.gams.de           http://www.gams.com




28

More Related Content

Similar to Stochastic Optimization: Solvers and Tools

Scalable machine learning
Scalable machine learningScalable machine learning
Scalable machine learningArnaud Rachez
 
Sc12 workshop-writeup
Sc12 workshop-writeupSc12 workshop-writeup
Sc12 workshop-writeupAaron Zauner
 
Low Latency Polyglot Model Scoring using Apache Apex
Low Latency Polyglot Model Scoring using Apache ApexLow Latency Polyglot Model Scoring using Apache Apex
Low Latency Polyglot Model Scoring using Apache ApexApache Apex
 
A Fast and Accurate Cost Model for FPGA Design Space Exploration in HPC Appli...
A Fast and Accurate Cost Model for FPGA Design Space Exploration in HPC Appli...A Fast and Accurate Cost Model for FPGA Design Space Exploration in HPC Appli...
A Fast and Accurate Cost Model for FPGA Design Space Exploration in HPC Appli...waqarnabi
 
Robert Hensel resume v111416 Lnkedin
Robert Hensel resume v111416 LnkedinRobert Hensel resume v111416 Lnkedin
Robert Hensel resume v111416 LnkedinBob Hensel
 
PyMADlib - A Python wrapper for MADlib : in-database, parallel, machine learn...
PyMADlib - A Python wrapper for MADlib : in-database, parallel, machine learn...PyMADlib - A Python wrapper for MADlib : in-database, parallel, machine learn...
PyMADlib - A Python wrapper for MADlib : in-database, parallel, machine learn...Srivatsan Ramanujam
 
Enabling Performance Modeling for the Masses: Initial Experiences
Enabling Performance Modeling for the Masses: Initial ExperiencesEnabling Performance Modeling for the Masses: Initial Experiences
Enabling Performance Modeling for the Masses: Initial Experiencesabgolla
 
Apache SystemML Architecture by Niketan Panesar
Apache SystemML Architecture by Niketan PanesarApache SystemML Architecture by Niketan Panesar
Apache SystemML Architecture by Niketan PanesarArvind Surve
 
Apache SystemML Architecture by Niketan Panesar
Apache SystemML Architecture by Niketan PanesarApache SystemML Architecture by Niketan Panesar
Apache SystemML Architecture by Niketan PanesarArvind Surve
 
The CAOS framework: Democratize the acceleration of compute intensive applica...
The CAOS framework: Democratize the acceleration of compute intensive applica...The CAOS framework: Democratize the acceleration of compute intensive applica...
The CAOS framework: Democratize the acceleration of compute intensive applica...NECST Lab @ Politecnico di Milano
 
Azure 機器學習 - 使用Python, R, Spark, CNTK 深度學習
Azure 機器學習 - 使用Python, R, Spark, CNTK 深度學習 Azure 機器學習 - 使用Python, R, Spark, CNTK 深度學習
Azure 機器學習 - 使用Python, R, Spark, CNTK 深度學習 Herman Wu
 
Making_Good_Enough...Better-Addressing_the_Multiple_Objectives_of_High-Perfor...
Making_Good_Enough...Better-Addressing_the_Multiple_Objectives_of_High-Perfor...Making_Good_Enough...Better-Addressing_the_Multiple_Objectives_of_High-Perfor...
Making_Good_Enough...Better-Addressing_the_Multiple_Objectives_of_High-Perfor...John Gunnels
 
2018 03 25 system ml ai and openpower meetup
2018 03 25 system ml ai and openpower meetup2018 03 25 system ml ai and openpower meetup
2018 03 25 system ml ai and openpower meetupGanesan Narayanasamy
 
Automated Testing of Autonomous Driving Assistance Systems
Automated Testing of Autonomous Driving Assistance SystemsAutomated Testing of Autonomous Driving Assistance Systems
Automated Testing of Autonomous Driving Assistance SystemsLionel Briand
 

Similar to Stochastic Optimization: Solvers and Tools (20)

Disco workshop
Disco workshopDisco workshop
Disco workshop
 
Scalable machine learning
Scalable machine learningScalable machine learning
Scalable machine learning
 
System mldl meetup
System mldl meetupSystem mldl meetup
System mldl meetup
 
Memory models
Memory modelsMemory models
Memory models
 
Sc12 workshop-writeup
Sc12 workshop-writeupSc12 workshop-writeup
Sc12 workshop-writeup
 
Low Latency Polyglot Model Scoring using Apache Apex
Low Latency Polyglot Model Scoring using Apache ApexLow Latency Polyglot Model Scoring using Apache Apex
Low Latency Polyglot Model Scoring using Apache Apex
 
computer architecture.
computer architecture.computer architecture.
computer architecture.
 
try
trytry
try
 
A Fast and Accurate Cost Model for FPGA Design Space Exploration in HPC Appli...
A Fast and Accurate Cost Model for FPGA Design Space Exploration in HPC Appli...A Fast and Accurate Cost Model for FPGA Design Space Exploration in HPC Appli...
A Fast and Accurate Cost Model for FPGA Design Space Exploration in HPC Appli...
 
Robert Hensel resume v111416 Lnkedin
Robert Hensel resume v111416 LnkedinRobert Hensel resume v111416 Lnkedin
Robert Hensel resume v111416 Lnkedin
 
PyMADlib - A Python wrapper for MADlib : in-database, parallel, machine learn...
PyMADlib - A Python wrapper for MADlib : in-database, parallel, machine learn...PyMADlib - A Python wrapper for MADlib : in-database, parallel, machine learn...
PyMADlib - A Python wrapper for MADlib : in-database, parallel, machine learn...
 
Enabling Performance Modeling for the Masses: Initial Experiences
Enabling Performance Modeling for the Masses: Initial ExperiencesEnabling Performance Modeling for the Masses: Initial Experiences
Enabling Performance Modeling for the Masses: Initial Experiences
 
Apache SystemML Architecture by Niketan Panesar
Apache SystemML Architecture by Niketan PanesarApache SystemML Architecture by Niketan Panesar
Apache SystemML Architecture by Niketan Panesar
 
Apache SystemML Architecture by Niketan Panesar
Apache SystemML Architecture by Niketan PanesarApache SystemML Architecture by Niketan Panesar
Apache SystemML Architecture by Niketan Panesar
 
CAOS: A CAD Framework for FPGA-Based Systems
CAOS: A CAD Framework for FPGA-Based SystemsCAOS: A CAD Framework for FPGA-Based Systems
CAOS: A CAD Framework for FPGA-Based Systems
 
The CAOS framework: Democratize the acceleration of compute intensive applica...
The CAOS framework: Democratize the acceleration of compute intensive applica...The CAOS framework: Democratize the acceleration of compute intensive applica...
The CAOS framework: Democratize the acceleration of compute intensive applica...
 
Azure 機器學習 - 使用Python, R, Spark, CNTK 深度學習
Azure 機器學習 - 使用Python, R, Spark, CNTK 深度學習 Azure 機器學習 - 使用Python, R, Spark, CNTK 深度學習
Azure 機器學習 - 使用Python, R, Spark, CNTK 深度學習
 
Making_Good_Enough...Better-Addressing_the_Multiple_Objectives_of_High-Perfor...
Making_Good_Enough...Better-Addressing_the_Multiple_Objectives_of_High-Perfor...Making_Good_Enough...Better-Addressing_the_Multiple_Objectives_of_High-Perfor...
Making_Good_Enough...Better-Addressing_the_Multiple_Objectives_of_High-Perfor...
 
2018 03 25 system ml ai and openpower meetup
2018 03 25 system ml ai and openpower meetup2018 03 25 system ml ai and openpower meetup
2018 03 25 system ml ai and openpower meetup
 
Automated Testing of Autonomous Driving Assistance Systems
Automated Testing of Autonomous Driving Assistance SystemsAutomated Testing of Autonomous Driving Assistance Systems
Automated Testing of Autonomous Driving Assistance Systems
 

More from SSA KPI

Germany presentation
Germany presentationGermany presentation
Germany presentationSSA KPI
 
Grand challenges in energy
Grand challenges in energyGrand challenges in energy
Grand challenges in energySSA KPI
 
Engineering role in sustainability
Engineering role in sustainabilityEngineering role in sustainability
Engineering role in sustainabilitySSA KPI
 
Consensus and interaction on a long term strategy for sustainable development
Consensus and interaction on a long term strategy for sustainable developmentConsensus and interaction on a long term strategy for sustainable development
Consensus and interaction on a long term strategy for sustainable developmentSSA KPI
 
Competences in sustainability in engineering education
Competences in sustainability in engineering educationCompetences in sustainability in engineering education
Competences in sustainability in engineering educationSSA KPI
 
Introducatio SD for enginers
Introducatio SD for enginersIntroducatio SD for enginers
Introducatio SD for enginersSSA KPI
 
DAAD-10.11.2011
DAAD-10.11.2011DAAD-10.11.2011
DAAD-10.11.2011SSA KPI
 
Talking with money
Talking with moneyTalking with money
Talking with moneySSA KPI
 
'Green' startup investment
'Green' startup investment'Green' startup investment
'Green' startup investmentSSA KPI
 
From Huygens odd sympathy to the energy Huygens' extraction from the sea waves
From Huygens odd sympathy to the energy Huygens' extraction from the sea wavesFrom Huygens odd sympathy to the energy Huygens' extraction from the sea waves
From Huygens odd sympathy to the energy Huygens' extraction from the sea wavesSSA KPI
 
Dynamics of dice games
Dynamics of dice gamesDynamics of dice games
Dynamics of dice gamesSSA KPI
 
Energy Security Costs
Energy Security CostsEnergy Security Costs
Energy Security CostsSSA KPI
 
Naturally Occurring Radioactivity (NOR) in natural and anthropic environments
Naturally Occurring Radioactivity (NOR) in natural and anthropic environmentsNaturally Occurring Radioactivity (NOR) in natural and anthropic environments
Naturally Occurring Radioactivity (NOR) in natural and anthropic environmentsSSA KPI
 
Advanced energy technology for sustainable development. Part 5
Advanced energy technology for sustainable development. Part 5Advanced energy technology for sustainable development. Part 5
Advanced energy technology for sustainable development. Part 5SSA KPI
 
Advanced energy technology for sustainable development. Part 4
Advanced energy technology for sustainable development. Part 4Advanced energy technology for sustainable development. Part 4
Advanced energy technology for sustainable development. Part 4SSA KPI
 
Advanced energy technology for sustainable development. Part 3
Advanced energy technology for sustainable development. Part 3Advanced energy technology for sustainable development. Part 3
Advanced energy technology for sustainable development. Part 3SSA KPI
 
Advanced energy technology for sustainable development. Part 2
Advanced energy technology for sustainable development. Part 2Advanced energy technology for sustainable development. Part 2
Advanced energy technology for sustainable development. Part 2SSA KPI
 
Advanced energy technology for sustainable development. Part 1
Advanced energy technology for sustainable development. Part 1Advanced energy technology for sustainable development. Part 1
Advanced energy technology for sustainable development. Part 1SSA KPI
 
Fluorescent proteins in current biology
Fluorescent proteins in current biologyFluorescent proteins in current biology
Fluorescent proteins in current biologySSA KPI
 
Neurotransmitter systems of the brain and their functions
Neurotransmitter systems of the brain and their functionsNeurotransmitter systems of the brain and their functions
Neurotransmitter systems of the brain and their functionsSSA KPI
 

More from SSA KPI (20)

Germany presentation
Germany presentationGermany presentation
Germany presentation
 
Grand challenges in energy
Grand challenges in energyGrand challenges in energy
Grand challenges in energy
 
Engineering role in sustainability
Engineering role in sustainabilityEngineering role in sustainability
Engineering role in sustainability
 
Consensus and interaction on a long term strategy for sustainable development
Consensus and interaction on a long term strategy for sustainable developmentConsensus and interaction on a long term strategy for sustainable development
Consensus and interaction on a long term strategy for sustainable development
 
Competences in sustainability in engineering education
Competences in sustainability in engineering educationCompetences in sustainability in engineering education
Competences in sustainability in engineering education
 
Introducatio SD for enginers
Introducatio SD for enginersIntroducatio SD for enginers
Introducatio SD for enginers
 
DAAD-10.11.2011
DAAD-10.11.2011DAAD-10.11.2011
DAAD-10.11.2011
 
Talking with money
Talking with moneyTalking with money
Talking with money
 
'Green' startup investment
'Green' startup investment'Green' startup investment
'Green' startup investment
 
From Huygens odd sympathy to the energy Huygens' extraction from the sea waves
From Huygens odd sympathy to the energy Huygens' extraction from the sea wavesFrom Huygens odd sympathy to the energy Huygens' extraction from the sea waves
From Huygens odd sympathy to the energy Huygens' extraction from the sea waves
 
Dynamics of dice games
Dynamics of dice gamesDynamics of dice games
Dynamics of dice games
 
Energy Security Costs
Energy Security CostsEnergy Security Costs
Energy Security Costs
 
Naturally Occurring Radioactivity (NOR) in natural and anthropic environments
Naturally Occurring Radioactivity (NOR) in natural and anthropic environmentsNaturally Occurring Radioactivity (NOR) in natural and anthropic environments
Naturally Occurring Radioactivity (NOR) in natural and anthropic environments
 
Advanced energy technology for sustainable development. Part 5
Advanced energy technology for sustainable development. Part 5Advanced energy technology for sustainable development. Part 5
Advanced energy technology for sustainable development. Part 5
 
Advanced energy technology for sustainable development. Part 4
Advanced energy technology for sustainable development. Part 4Advanced energy technology for sustainable development. Part 4
Advanced energy technology for sustainable development. Part 4
 
Advanced energy technology for sustainable development. Part 3
Advanced energy technology for sustainable development. Part 3Advanced energy technology for sustainable development. Part 3
Advanced energy technology for sustainable development. Part 3
 
Advanced energy technology for sustainable development. Part 2
Advanced energy technology for sustainable development. Part 2Advanced energy technology for sustainable development. Part 2
Advanced energy technology for sustainable development. Part 2
 
Advanced energy technology for sustainable development. Part 1
Advanced energy technology for sustainable development. Part 1Advanced energy technology for sustainable development. Part 1
Advanced energy technology for sustainable development. Part 1
 
Fluorescent proteins in current biology
Fluorescent proteins in current biologyFluorescent proteins in current biology
Fluorescent proteins in current biology
 
Neurotransmitter systems of the brain and their functions
Neurotransmitter systems of the brain and their functionsNeurotransmitter systems of the brain and their functions
Neurotransmitter systems of the brain and their functions
 

Recently uploaded

NLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptxNLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptxssuserbdd3e8
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...Sayali Powar
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfThiyagu K
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)rosedainty
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPCeline George
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXMIRIAMSALINAS13
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleCeline George
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasGeoBlogs
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptxJosvitaDsouza2
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...Jisc
 
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxJose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxricssacare
 
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...Nguyen Thanh Tu Collection
 
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...Denish Jangid
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...EugeneSaldivar
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfVivekanand Anglo Vedic Academy
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfkaushalkr1407
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativePeter Windle
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePedroFerreira53928
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxPavel ( NSTU)
 

Recently uploaded (20)

NLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptxNLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptx
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxJose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
 
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
 
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 

Stochastic Optimization: Solvers and Tools

  • 1. Stochastic Optimization: Solvers and Tools Michael R. Bussieck MBussieck@gams.com GAMS Software GmbH http://www.gams.de Stochastic Optimization in the Energy Industry Aachen, Germany, April 19-20, 2007 1
  • 2. GAMS Development / GAMS Software • Roots: Research project World Bank 1976 • Pioneer in Algebraic Modeling Systems used for economic modeling • Went commercial in 1987 • Offices in Washington, D.C • Professional software tool and Cologne provider • Operating in a segmented niche market • Broad academic & commercial user base and network 2
  • 3. GAMS at a Glance General Algebraic Modeling System: Algebraic Modeling Language, Integrated Solver, Model Libraries, Connectivity- & Productivity Tools Design Principles: • Balanced mix of declarative and procedural elements • Open architecture and interfaces to other systems • Different layers with separation of: – model and data – model and solution methods – model and operating system – model and interface 3
  • 4. AML and Stochastic Programming (SP) • Algebraic Modeling Languages/Systems good way to represent optimization problems – Algebra is a universal language – Hassle free use of optimization solvers – Simple connection to data sources (DB, Spreadsheets, …) and analytic engines (GIS, Charting, …) • Large number of (deterministic) models in production – Opportunity for seamless introduction of new technology like Global Optimization, Stochastic Programming, … – AML potential framework for SP 4
  • 5. Stochastic Programming Claims and ‘Facts' • Lots of application areas (Finance, Energy, Telecommunication) • Mature field (Dantzig ’55) • Variety of SP problem classes with specialized solution algorithms (e.g. Bender’s Decomposition) • Compared to deterministic mathematical programming (MP) small fraction • Only 0.2% of NEOS submission to SP solvers • No/few commercially supported solvers for SP • Various frustrations with industrial SP projects 5
  • 6. Some Stochastic Programming Classes Source: G. Mitra 6
  • 7. Chance Constraints • β is the reliability level 7
  • 8. Dynamic Representation 8 Source: G. Mitra
  • 9. Two-Stage SLP with recourse • x first-stage decision variables • yw second-stage decision variables • c, fw objective coefficients • A,b first-stage coefficients • Bw,Dw,dw second-stage random parameters 9
  • 10. Multi-Stage SLP with recourse 10
  • 12. Deterministic Equivalent (DE) • Discrete Distribution/Scenarios • Standard (Mixed Integer Nonlinear) Linear Program with block structure (opportunity for special purpose algorithms) • Non-anticipativity (or locking) constraints – Explicit by new constraints (Split-variable representation maintains block structure) – Implicit through variable substitution • Size equivalent to number of possible realizations (i.e. exponential in the number of random variables) • Size of LP can quickly explode 12
  • 13. Personalized Software Overview • SP Solvers – Standard LP Solvers – SP solvers based on decomposition • Modeling Tools – SMPS (core, time, stochastic) – Extension to AML – APIs • Others – Scenario (tree) management – Visualization of results 13
  • 14. Stochastic Programming Solvers • LP solver – Interior point methods seem to be better than simplex • All other ready to use solver (e.g. NEOS) for n-stage SP with recourse: – DECIS, Infanger (2-stage) – FortSP, OptiRisk – OSL/SE, IBM (discontinued) – Academic codes: MSLiP (Gassmann), bnbs (Altenstedt), ddsip (Schultz et. al) (2-stage MIP), … • SLP-IOR (Mayer/Kall) started in 1992 – Model management system for SLP – Rich solver library (21) for 18 SP model types 14
  • 15. DECIS • Solves two-stage stochastic linear programs with recourse • Two-stage decomposition (Benders) • Stores only one instance of the problem and generates scenario sub-problems as needed • LP engine for sub-problems CPLEX or MINOS • Solution Strategies – Universe problem (all scenarios) – Sampling: Crude Monte Carlo/Importance sampling 15
  • 16. SP Modeling Tools • Stochastic MPS – make it easy to convert existing deterministic LP into SLP – Add information about dynamic and stochastic structure. • Core file (deterministic problem) • Time file (map core file dynamic structure into stages) • Stoch file (information about the random variables) • SMPS format is extremely flexible exceeding the capability of any existing stochastic programming solver • Difficult for a human to manage 16
  • 17. SP Modeling Tools cont. • Algebraic Modeling Languages – Similar to SMPS: • Supply time/stage map • Supply stochastic information – Integrated in language: AIMMS, GAMS, Mosel – Extensions: SAMPL, SMPL, StAMPL • API – OSL/SE (discontinued) – COIN-OR Stochastic Modeling Interface (SMI) https://projects.coin-or.org/Smi • Gear towards generating and solving DE 17
  • 18. 18
  • 19.
  • 20. Other Tools and Frameworks • Scenario (tree) management – Generation • From random variables to scenarios • SAMPL, SMPL, AIMMS, Mosel tools for tree generation – Reduction • ScenRed, (Römisch et. al.) • Framework – SLP-IOR – SPInE (Stochastic Programming Integrated Environment), OptiRisk • Special purpose scenario generators • Connection to SAMPL and SMPL • FortSP SP solver 20
  • 21. ScenRed (Römisch et. al.) • Find good approximation of original scenario tree of significant smaller size. 21
  • 22. Observations • Skills for SP Application – Application domain expert – Modeling expert – Statistic/Stochastic expert (scenario generation) – Algorithmic expert • Focus has shifted from solving SP to represent/model SP • Little progress in specialized solver technology • GUPOR: Large Scale Stochastic Programming: Still an unsolved problem in OR (Birge, 2006) 22
  • 23. GAMS Approach to SP • Emphasis on performance: – Support 64bit OS to overcome memory issues – Efficient out-of-core solver runs – Reduce SP problem size (GAMS/ScenRed) – Make professional special purpose SP solvers available • GAMS/DECIS (GAMS/OSL-SE) – Utilize emerging grid computing technology – High performance data exchange • Minor modifications to GAMS language – Emphasize functionality over beauty 23
  • 24. Wait-and-see Model • Independent problems → Solve in parallel • GAMS Grid Facility – Supports SMP and various grid engines A pool of connected computers managed and available as a common computing resource • Effective sharing of CPU power • Massive parallel task execution • Scheduler handles management tasks • E.g. Condor, Sun N6 Grid Engine, Globus • Can be rented or owned in common 24
  • 25. Examples • Too few (lots of repeats) • Too simple • Difficult to reproduce • Important steps in example missing – Creating stochastic data/scenarios – Analyzing results (vast amount of data) • Power Expansion Problem (GAMS/DECIS, AIMMS) – Simple, small, demand scenarios given – But at least reproducible 25
  • 26. Power Expansion Problem • Determine capacity expansion for different power plants (coal, hydro, nuclear) based on uncertain demand • Cost structure: capital cost + operating cost • Demand given as load block: GW peak base 0 24 hours • Additional constraint: No nuclear in peak. 26 • Recourse: Purchase electricity
  • 27. Conclusion • Stochastic Programming still challenging and developing field – GUPOR: Uncertainty: An OR Frontier (Greenberg, 2006) • Lack of solution technology for n-stage SLP limits the dissemination of SP • Reduce the skill level for SP applications • Collection of comprehensive & reproducible examples could help to spread the word 27
  • 28. Contacting GAMS Europe: USA: GAMS Software GmbH GAMS Development Corp. Eupener Str. 135-137 1217 Potomac Street, NW 50933 Cologne Washington, DC 20007 Germany USA Phone: +49 221 949 9170 Phone: +1 202 342 0180 Fax: +49 221 949 9171 Fax: +1 202 342 0181 http://www.gams.de http://www.gams.com 28