Skip to content

A simple implementation of the Benders decomposition method with JuMP

License

Notifications You must be signed in to change notification settings

matbesancon/SimpleBenders.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleBenders.jl

Build Status Coverage

A simple implementation of the Benders decomposition method with JuMP.

Motivation

A good start with this package is the corresponding blog post. The implementation is far from smart since it uses the matrix form of the subproblem.

Usage

SimpleBenders.jl assumes a problem of the form:

min f(y) + <c, x>
s.t.
G(x) ∈ S
A x + D y ≥ b
x ≥ 0

The projected-out sub-problem requires data stored in a dedicated structure:

struct SubProblemData
    b::Vector{Float64}
    D::Matrix{Float64}
    A::Matrix{Float64}
    c::Vector{Float64}
end

The different bindings correspond to the problem presented above. Users can build their upper-level model m with the y variables, and define the objective on the main variables: f(y). The main function, benders_optimize! can be called with:

benders_optimize!(m::Model, y::Vector{VariableRef}, sd::SubProblemData, sp_optimizer, f)

Which will solve the problem using Benders decomposition.

About

A simple implementation of the Benders decomposition method with JuMP

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages