Giter Club home page Giter Club logo

simplebenders.jl's Introduction

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.

simplebenders.jl's People

Contributors

juliatagbot avatar matbesancon avatar zhanwei-liu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.