Skip to content

hww-dev/benders_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Benders Decomposition Example

This repository contains two simple implementations of the Benders Decomposition example that is presented by Dr. Ray Jian Zhang. The YouTube video can be found here: Youtube video.

Wikipedia page Benders Decomposition: Wikipedia

A more extensive explanation of Benders Decomposition (in the context of Stochastic Programming) can be found in the book "Introduction to Stochastic Programming" by Birge and Louveaux: Springer.

1. Installation

The example is implemented in Python and Gurobi, only requiring the Gurobipy-module. See also requirements.txt.

2. Code Execution

The code can be executed by either running the benders.py or benders_no_model_rebuild.py file, both leading to the same solution.

In the first approach, the master problem is rebuilt from scratch in every iteration. The second approach reuses the current state of the optimization model, therefore avoiding computational overhead when rebuilding and solving the model. In both approaches, the generated linear programs of each iteration are stored as .lp-files in the root folder of the project.

About

Simple implementation of Benders Decomposition using Python & Gurobi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages