---
title: Recursive McCormick in Optimization
url: https://www.emergentmind.com/topics/recursive-mccormick
type: topic
---

# Recursive McCormick in Optimization

Recursive McCormick denotes a family of convexification and linearization techniques for multilinear and polynomial optimization in which a high-order product is recursively factorized into bilinear products, auxiliary variables are introduced for intermediate factors, and each bilinear relation is enforced by a McCormick envelope. In binary polynomial optimization, recursive McCormick relaxations are applied to the lifted multilinear set of a hypergraph; in multilinear programming, Recursive McCormick Linearization plays the analogous role for monomials over $\Omega=[0,1]^n$ or $\{0,1\}^n$. Across these settings, a central theme is that the quality and the size of the relaxation depend on the chosen recursive sequence, and recent work shows that the extended flower relaxation dominates every individual recursive McCormick relaxation while the intersection of all recursive linearizations recovers the same strength [2209.13034][2207.08955][2311.08570].

## 1. Formal definitions and lifted formulations

For a hypergraph $G=(V,E)$, the binary multilinear set is
$$
S_G=\{(z_v,v\in V),(z_e,e\in E)\mid z_v\in\{0,1\},\ z_e=\prod_{v\in e}z_v\}.
$$
A recursive McCormick relaxation builds a sequence of pairwise factorizations of each high-order term $z_e$ by introducing new “artificial” variables. For each original edge $e\in E$ with $|e|\ge 2$, one chooses a partition $P_e=\{J_e,K_e\}$ of $e$ into two nonempty sets, introduces $y_{J_e}$ and $y_{K_e}$ if $|J_e|>1$ or $|K_e|>1$, marks them as new edges, and recurses until every edge in the recursion is of size $1$ or already in $V$. The terminal system consists of bilinear equations
$$
y_{J\cup K}=y_J\cdot y_K,
$$
each enforced by the McCormick envelope over $[0,1]^2$:
$$
y_{J\cup K}\ge 0,\qquad
y_{J\cup K}\ge y_J+y_K-1,\qquad
y_{J\cup K}\le y_J,\qquad
y_{J\cup K}\le y_K.
$$
The resulting LP in the lifted space of $\{z_v,v\in V\}\cup\{y_e,e\in E\cup E_{\text{artificial}}\}$ is called a recursive McCormick relaxation [2209.13034].

In the multilinear-programming formulation, the same construction is represented through triples. Let
$$
\mathcal T=\bigcup_{i=1}^m\{t=(J,J',J''):\;J\cup J'=J'',\,J\cap J'=\emptyset,\;|J''|\ge2\},
$$
with $\mathrm{head}(t)=J''$ and $\mathrm{tails}(t)=\{J,J'\}$. A subset $T\subseteq\mathcal T$ is a proper triple set if there exists $T'\subseteq T$ such that every original monomial index $J_i$ with $\lvert J_i\rvert>1$ appears as $\mathrm{head}(t)$ for exactly one $t\in T'$, and whenever a set $J$ with $\lvert J\rvert>1$ appears as a tail in some $t\in T'$, then $J$ also appears as $\mathrm{head}(t')$ for some $t'\in T'$. Given a proper $T$, one defines new variables $y_J$ for every $J$ that arises as a head in $T$ and writes McCormick-envelope constraints for every triple $t\in T$ [2207.08955].

A more general abstraction replaces recursive factorization by a directed acyclic graph $D=(\hat V,A)$ whose nodes are subsets of the base-variable set, with singletons included and with each non-singleton covered by its out-neighborhood. When every non-singleton has exactly two disjoint children, $D$ is a recursive McCormick linearization. The corresponding relaxation $P(D)$ is defined by short inequalities $z_I\le z_J$, long inequalities $z_I+\sum_{J\in\mathrm{Out}(I)}(1-z_J)\ge 1$, and bounds $0\le z_I\le 1$ [2311.08570].

## 2. Recursive sequences, proper triple sets, and complexity

The recursive sequence is the chain of subsets through which an original edge is factorized down to singletons. Different sequences induce different sets of artificial variables and different McCormick constraints. The number of new variables is $|E_{\text{artificial}}|$, which can grow with how finely one decomposes each edge, and finding a minimum-size recursive McCormick relaxation is NP-hard even for rank-3 hypergraphs. The effect on strength is equally significant: sequences that “reuse” the same artificial variable in multiple products can dramatically strengthen the bound, whereas if no artificial variable is shared—i.e. the relaxation is “non-overlapping”—the recursive McCormick relaxation collapses to the standard linearization by projection [2209.13034].

The combinatorics of recursive McCormick Linearization can be encoded exactly. An exact mixed-integer programming formulation for minimum-size RML introduces binary variables
$$
v_t\in\{0,1\},\qquad u_{i,t}\in\{0,1\},
$$
where $v_t=1$ if triple $t$ is used anywhere and $u_{i,t}=1$ if $t$ is used specifically to linearize monomial $i$. The model enforces the proper-triple conditions and minimizes $\sum_{t\in\mathcal T}v_t$. In general this minimum-size problem is NP-hard; restricted to “3-MLP”, the paper shows fixed-parameter tractability with parameter $k=$ desired number of triples. After kernelization to size $O(k^2)$, a bounded search-tree with branching factor $3$ yields an $O(3^k\,k^2+k^6)$ FPT algorithm. A second exact model addresses the best-bound problem under a triple budget $k$ by formulating a bilevel program and replacing the inner LP with its dual to obtain a single-level MIP [2207.08955].

These results formalize a recurring empirical observation: minimizing the number of auxiliary variables and maximizing LP strength are distinct objectives. This suggests that “small” recursive McCormick formulations and “strong” recursive McCormick formulations need not coincide.

## 3. Extended-flower dominance and exact strength characterizations

A standard linearization for a hypergraph $G=(V,E)$ introduces, for each original edge $e\in E$ and each $v\in e$,
$$
z_v\le 1,\qquad
z_e\ge \sum_{v\in e}z_v-|e|+1,\qquad
0\le z_e\le z_v.
$$
Del Pia–Khajavirad introduced flower inequalities centered at an edge $e_0\in E$. If $K=\{k:|e_0\cap e_k|\ge 2\}$ and $T\subseteq K$ is nonempty, with $|e_0\cap e_k|\ge 2$ for all $k\in T$ and pairwise disjoint intersections $(e_0\cap e_i)\cap(e_0\cap e_j)=\emptyset$ for $i\ne j$, then
$$
\sum_{v\in e_0\setminus\cup_{k\in T}e_k} z_v + \sum_{k\in T} z_{e_k} - z_{e_0}
\le |e_0\setminus\cup_{k\in T}e_k| + |T| -1.
$$
The extended flower relaxation relaxes the pairwise-disjointness condition and instead requires
$$
\gamma_k := |(e_0\cap e_k)\setminus \cup_{j\in T\setminus\{k\}}(e_0\cap e_j)| \ge 2\qquad \forall k\in T.
$$
With the same left-hand side, these inequalities define $MP_G^{EF}$, and $MP_G^F\subseteq MP_G^{EF}$ [2209.13034].

The central theorem is that for every recursive McCormick relaxation of $S_G$,
$$
MP_G^{EF}\subseteq MP_G^{RMC}.
$$
Equivalently, the projection of any recursive McCormick formulation onto the original $(z_v,z_e)$-space is implied by the extended flower relaxation. The proof proceeds by induction on the maximum depth of artificial variables. The key step is that eliminating an artificial variable by Fourier–Motzkin yields either an extended flower inequality or a weaker inequality already contained in the standard linearization [2209.13034].

Subsequent work reformulates the same phenomenon at the level of general recursive linearizations. For a multilinear problem with hypergraph $G=(V,E)$, let $FR(G)$ denote the set of all $z\in[0,1]^{E\cup S}$ satisfying every extended flower inequality of the form
$$
z_I+\sum_{i=1}^k(1-z_{J_i})\ge 1,
$$
where the neighbors $J_1,\dots,J_k\in E\cup S$ cover $I$ and each intersects $I$ non-trivially. Then $FR(G)\subseteq P_E(D)$ for every recursive McCormick linearization $D$, and in fact
$$
FR(G)=\bigcap_{D\ \text{recursive McCormick of }G} P_E(D).
$$
The same equality holds even if one intersects over all recursive linearizations, including non-binary and non-partitioning ones [2311.08570].

A common misconception is that any recursive factorization is automatically stronger than the standard linearization. The non-overlapping case shows otherwise, and the extended-flower results show that the maximal strength obtainable from recursive McCormick constructions is already captured by a single cut family.

## 4. Trilinear products, double McCormick, and geometric comparison

For the trilinear monomial $f=x_1x_2x_3$ over a nonnegative box $[a_1,b_1]\times[a_2,b_2]\times[a_3,b_3]$, double McCormick applies the standard McCormick inequalities twice: first to one bilinear factor, then to the product of the resulting auxiliary variable with the remaining factor. Grouping $(x_i,x_j)$ first and multiplying by $x_k$ second yields one of three possible relaxations, denoted $P_1,P_2,P_3$ according to which variable is not grouped first. Speakman and Lee derive closed-form four-dimensional volume formulae for all three relaxations and for the exact trilinear hull $P_H$ [1508.02966].

Under the ordering
$$
a_1b_2b_3+b_1a_2a_3
\le b_1a_2b_3+a_1b_2a_3
\le b_1b_2a_3+a_1a_2b_3,
$$
one has
$$
\mathrm{Vol}(P_H)\le \mathrm{Vol}(P_3)\le \mathrm{Vol}(P_2)\le \mathrm{Vol}(P_1).
$$
Thus the tightest double-McCormick relaxation is $P_3$, while $P_1$ is the weakest. The paper emphasizes that these results apply not only to original variables but also to products involving auxiliary variables in a factorable formulation, so they extend directly to recursive convexification choices in spatial branch-and-bound. It also states that the “best” double-McCormick often has volume very close to the full trilinear hull $P_H$, while using only $1$ auxiliary variable and $8$ inequalities instead of the $18$ needed for $P_H$ [1508.02966].

Experimental work on box cubic problems substantiates the practical relevance of the volume criterion. For boxcup instances on dense, sparse, and very sparse 3-uniform hypergraphs, the authors solve LP relaxations over $P_h,P_1,P_2,P_3$ in many random objective directions and compare the resulting quasi mean widths. Across all three sparsity regimes, the ordering
$$
\omega(P_h)\le \omega(P_3)\le \omega(P_2)\le \omega(P_1)
$$
held almost without exception. Scatter-plot regressions of aggregated idealized radius against $\omega(P_\ell)$ gave $R^2$-values above $0.98$, and the worst-case experiments with $a_1=a_2=0,\ b_1=b_2=1$ confirmed that the maximal gap between the best and bad double-McCormick relaxations occurs when $a_3=b_3/3$ [1608.02527].

This geometric analysis places a quantitative interpretation on recursive McCormick choices: the order of aggregation is not merely representational, but measurably alters the relaxation.

## 5. Illustrative examples and computational evidence

A canonical example in binary polynomial optimization is
$$
\max\ f(x)= -x_1x_2x_3 + x_2x_3x_4 + x_1x_3x_4,\qquad x\in\{0,1\}^4.
$$
A simple recursive McCormick sequence factors each cubic as $x_i\cdot(x_jx_k)$ and introduces three distinct artificial variables $y_{12},y_{23},y_{13}$, yielding LP-bound $4/3$. A stronger sequence reuses $y_{34}$ through $y_{234}=x_2\cdot y_{34}$ and $y_{134}=x_1\cdot y_{34}$; this overlapping recursive McCormick relaxation achieves the sharp bound $1.0$. The flower relaxation $MP_G^F$, and therefore also $MP_G^{EF}$, cuts the same fractional extreme point and gives $U=1.0$ [2209.13034].

| Formulation choice | Structural feature | Reported bound |
|---|---|---|
| Sequence 1 | three distinct artificial variables $y_{12},y_{23},y_{13}$ | LP-bound $4/3$ |
| Sequence 2 | reuse of $y_{34}$ in two products | sharp bound $1.0$ |
| $MP_G^F$ / $MP_G^{EF}$ | cuts the same fractional extreme point as Sequence 2 | $U=1.0$ |

The example isolates the role of overlap. It explains why recursive McCormick constructions that share intermediate factors can be much stronger than decompositions that treat each monomial independently.

For unconstrained multilinear benchmarks, computational findings for Recursive McCormick Linearization show a structured trade-off among formulation size, bound quality, and overall solution time. On mult3/mult4, vision, and autocorr instances, MinLin and Greedy often reduce the number of artificial variables by $30$–$50\,\%$ compared to full sequential (Seq), with MinLin strictly superior to Greedy in linearization size. At the root node, the Best-Bound model (BB) yields the tightest relaxation, followed by MinLin and Greedy, and Seq last. On mult3/mult4, all RMLs close the gap but BB and even the full-model (Full) are fastest. On vision and autocorr, only Full and BB often make nontrivial progress; MinLin and Seq lag behind Greedy on autocorr but outperform it on vision. The exact MinLin formulation solves minimum-size RML to optimality in $<15\,\text{s}$ on most instances under a $20\,\text{s}$ limit, with mult4 instances hardest [2207.08955].

These benchmark results reinforce a basic methodological point: recursive McCormick should be understood not as a single relaxation, but as a design space of relaxations with different structural objectives.

## 6. Complexity, implementation, and applied variants

Although the extended flower relaxation contains exponentially many potential cuts, its separation problem can be solved in strongly polynomial time when the rank $r$ of the hypergraph is fixed. The stated procedure enumerates, for each center $e_0$, all subsets $T$ of its neighbors of size $\le r/2$, checks the $\gamma$-condition, and selects the most violated inequality in time $O(|E|\cdot 2^{O(r^2)})$, i.e. $O(|E|^2)$ for constant $r$. By the equivalence of separation and optimization, $MP_G^{EF}$ can therefore be optimized in strongly polynomial time for fixed-degree binary polynomials. One stated consequence is that, instead of solving a hard MIP to choose an “optimal” recursive sequence, one can solve or separate the extended flower relaxation and obtain at least as strong a bound [2209.13034].

The generalized recursive-linearization framework clarifies the implementation alternatives. $FR(G)$ has exponentially many inequalities in general, and separation is NP-hard when degree is part of the input, whereas each recursive McCormick model uses only polynomially many variables and constraints for fixed degree. Two algorithmic viewpoints are therefore available: dynamically generate violated flower inequalities, or dynamically add new recursive linearizations with auxiliary variables and McCormick constraints. Theorem 5.1 shows that these two viewpoints are equivalent in strength [2311.08570].

In a different application setting, the 2026 power-systems paper uses the phrase “iterative (or recursive) McCormick relaxation” for a repeated bound-tightening scheme on a bilinear term $w=x\cdot y$. Over bounds $x^L\le x\le x^U$ and $y^L\le y\le y^U$, the standard McCormick envelope is defined by four linear inequalities, and the paper tightens the relaxation by splitting the allowable range of one variable into increments $\Delta r$, solving a linearized master problem at each slice, and “re-centering” the bounds after each solve. In the network-impedance application, $x$ is the change in susceptance $\Delta b$ and $y$ is the voltage-angle difference $\Delta\theta$; after iteration $i$ the next bounds are
$$
x_L^{(i+1)}=-\Delta r\cdot \bar b^{(i)},\qquad
x_U^{(i+1)}=+\Delta r\cdot \bar b^{(i)}.
$$
The paper states that the maximum relaxation error for one McCormick envelope is
$$
E_{\max}=\frac{(x_U-x_L)(y_U-y_L)}{4},
$$
and gives a high-level argument that the aggregate error tends to $0$ as $\Delta r\to 0$, while also noting that no formal proof is in the paper [2602.18059].

The reported numerical evidence shows the intended effect. For Case 300 with $r=10\%$, the original McCormick relaxation has error $0.68\%$ and the iterative McCormick method has error $0.117\%$; at $r=50\%$, the corresponding errors are $0.34\%$ and $0.234\%$. Larger systems show the same qualitative pattern: Case 588\_sdet reports approximately $0.017\%$ versus $0.001\%$, Case 1354pegase approximately $0.183\%$ versus $0.03\%$, and Case 1888rte approximately $4.37\%$ versus $3.56\%$. The paper summarizes this as the recursive McCormick scheme driving the relaxation gap downward by roughly an order of magnitude, or more, with only a modest increase in total solve-time [2602.18059].

Taken together, these lines of work give recursive McCormick a dual status. In binary multilinear optimization, it is a precisely analyzable family of hypergraph-based linearizations whose aggregate power is exactly captured by extended-flower inequalities. In factorable and applied nonconvex optimization, it is also a practical template for recursively or iteratively tightening bilinear relaxations through decomposition, reuse, and local re-centering.

Source: https://www.emergentmind.com/topics/recursive-mccormick