# Benders decomposition

**URL:** <https://discourse.julialang.org/t/benders-decomposition/120734>\
**Category:** Optimization (Mathematical)\
**Tags:** question\
**Created:** [September 30, 2024, 6:07pm UTC](https://discourse.julialang.org/t/benders-decomposition/120734 "2024-09-30T18:07:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wahadhasan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wahadhasan/32/207949_2.png) [@wahadhasan](https://discourse.julialang.org/u/wahadhasan)\
**Post date:** [September 30, 2024, 6:07pm UTC](https://discourse.julialang.org/t/benders-decomposition/120734/1 "2024-09-30T18:07:08Z")

</div>

Hi there, can anybody tell me how to take the sub-gradient here in case of an (==) constraint or (\>=) constraint instead of standard format (\<=)? Is it the same procedure or need to convert it into standard format first?

[Benders decomposition · JuMP](https://jump.dev/JuMP.jl/stable/tutorials/algorithms/benders_decomposition/)

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [September 30, 2024, 8:21pm UTC](https://discourse.julialang.org/t/benders-decomposition/120734/2 "2024-09-30T20:21:28Z")

</div>

Nothing changes. It is the same procedure.

The only thing to be aware of is that if you are maximizing, you need the `-dual(con)`.

See the documentation at [Constraints · JuMP](https://jump.dev/JuMP.jl/stable/manual/constraints/#constraint_duality)
