Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add formulas for man -> benders #966

Merged
merged 4 commits into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/src/api/benders.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
CurrentModule = Coluna
```

# Benders cut generation
# [Benders cut generation](@id api_benders)

Coluna provides an interface and generic functions to implement a Benders cut generation
algorithm.
Expand Down
41 changes: 30 additions & 11 deletions docs/src/man/decomposition.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,30 +94,49 @@ in gray and some linking variables in blue :
The intuition behind Benders decomposition is that some hard problems can become much easier with some of their variables fixed.
Benders aims to divide the variables of the problem into two "levels": the 1st level variables which, once fixed, make it easier to find a solution for the remaining variables, the so-called 2nd-level variables.

The question is how to set the 1st level variables. Benders' theory proceeds by successive generation of cuts: given a first-level solution, we ask the following questions:
The question is how to set the 1st level variables. Benders' theory proceeds by successive generation of cuts: given a 1st-level solution, we ask the following questions:

- Is the subproblem infeasible? If so, then the 1st-level solution is not correct and must be eliminated. A feasibility cut will be derived from the dual subproblem and added to the master.
- Does the aggregation of the master and subproblem solutions give rise to an optimal solution to the problem? It depends on a criterion that can be computed. If it is the case, we are done, else, we derive an optimality cut from the dual subproblem and add it into the master.

Formally, given an original MIP:

TODO: create and insert draw-handing picture as in DW section
```math
\begin{aligned}
\min \quad& cx + fy & \\
\text{s.t.} \quad& Ax \geq a\\
& Ey \geq e\\
& Bx + Dy \geq d\\
& x, y \geq 0, ~ x \in \mathbb{Z}^n\\
\end{aligned}
```

with $x$ the 1st-level variables, and $y$ the 2nd-level variables.

we decompose it into a master problem:

TODO: same with MASTER
```math
\begin{aligned}
\min \quad& cx + \sum\limits_{k \in K}\eta_k & \\
\text{s.t.} \quad& Ax \geq a\\
& <~\text{benders cuts}~>\\
& \eta_k \in \mathbb{R} \quad \forall k \in K\\
\end{aligned}
```

and a subproblem:

TODO: same with CGLP

Note that in the special case where the master problem is unbounded, the shape of the subproblem is slightly modified. We must retrieve an unbounded ray $$(u^*, u_0^*)$$ from the master and consider the following subproblem instead:

TODO: same with modified CGLP

The rules used to generate the cuts are detailed in [this paper](https://link.springer.com/chapter/10.1007/978-3-030-45771-6_7)
```math
\begin{aligned}
\min \quad& fy & \\
\text{s.t.} \quad& Dy \geq d - B\bar{x}\\
& Ey \geq e\\
& y \geq 0\\
\end{aligned}
```
with $\bar{x}$ a fixed solution for the master problem (i.e. valuations of the 1st-level variables)

(or TODO: describe the rules ? or ref to the different methods of the API that implement the cut generation process and should explain how cuts are generated)
Note that in the special case where the master problem is unbounded, the shape of the subproblem is slightly modified. See the [API](@ref api_benders) section to get more informations.


This decomposition is an alpha feature.
Expand Down