diff --git a/docs/src/api/benders.md b/docs/src/api/benders.md index c300091b7..d93e7afe7 100644 --- a/docs/src/api/benders.md +++ b/docs/src/api/benders.md @@ -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. diff --git a/docs/src/man/decomposition.md b/docs/src/man/decomposition.md index 546baf518..48104ec54 100644 --- a/docs/src/man/decomposition.md +++ b/docs/src/man/decomposition.md @@ -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.