betaFeedback

WorksComputer Science

A Compact Weight-Space Integer Programming Formulation for Balanced Minimum Evolution

Abstract

Balanced Minimum Evolution (BME) reconstructs an unrooted binary phylogenetic tree from a distance matrix DD by minimizing the length ∑i<jDijwij\sum_{i<j}D_{ij}w_{ij}, which is linear in the weights wij=2−dTijw_{ij}=2^{-d_T{ij}}. We study the formulation of BME in these (n2)\binom{n}{2} weight variables. Theoretical results. (i) For a fixed topology TT, the Kraft equalities, the cut equalities {W[S]=12}\{W[S]=\tfrac12\} of TT, and the single convex constraint ∑wijlog⁡2wij≤32−n\sum w_{ij} \log_2 w_{ij} \leq \tfrac{3}{2}-n admit exactly one point, the tree's weight vector. (ii) For every tree and every bipartition, the cut value WT[S]W_T[S] lies in {12}∪{34}∪[78,∞)\{\tfrac{1}{2}\} \cup \{\tfrac{3}{4}\} \cup [\tfrac{7}{8}, \infty); the value 34\tfrac{3}{4} is attained exactly by the 2(n−3)2(n-3) bipartitions created by one nearest-neighbour interchange; and the number of bipartitions with WT[S]≤1W_T[S]\le1 is 2n2−10n+152n^2-10n+15 for every binary topology. (iii) The crossing graph of nontrivial bipartitions has an edge clique cover with O(n4)O(n^4) cliques, and every edge clique cover needs Ω(n2)Ω(n^2). (iv) The necessary conditions of Catanzaro et al. for a path-length matrix, without the four-point condition, are sufficient for n≤11n \leq 11 and first fail at n=12n=12. Computational results. A compact branch-and-bound solver built on these results, which commits and forbids splits and imposes the convex constraint exactly, certifies optimality on benchmark instances with up to n=20n=20 taxa within an hour. It is faster than the distance-indexed model of Catanzaro et al. on two of these instances and slower on the others; that model, whose root bound is tighter, certifies 13 of 14 benchmark instances with n≤30n \leq 30 within an hour in every seed. Although the compact solver does not improve on the computational state of the art overall, we explain why, and we discuss the open problems that our results raise.

Introduction

Balanced minimum evolution is a distance-based criterion for phylogenetic reconstruction. Pauplin [1] showed that the length of a tree fitted to a distance matrix under the balanced weighting is a linear function of the matrix, with coefficients determined by the tree’s topology alone. The criterion is statistically consistent [2]. It underlies the FastME software [3], and Neighbor-Joining (NJ) [4] is a greedy algorithm for it [5]. NJ does not always return the BME-optimal tree [6], so finding the optimum is a separate problem.

On the theoretical side, the Balanced Minimum Evolution Problem (BMEP) is NP-hard and has no polynomial-time cnc^n-approximation for some c>1c > 1 unless P=NP [7]; the variant with a fixed tree shape, which only assigns the taxa to the leaves of a given tree, is also NP-hard and also hard to approximate [8]. The convex hull of the weight vectors of all trees, the BME polytope, has been studied through its facets [9], [10] and its faces [6], [11], and Catanzaro et al. characterize the integer path-length matrices of binary trees by linear and disjunctive conditions [12], [13]. A survey of the area is given in [14].

On the computational side, exact methods are integer programs solved by branch-and-bound or branch-and-cut [15], [16], [17]. The current best, the distance-indexed branch-and-cut of Catanzaro et al. [13], is reported to certify instances of up to about 32 taxa within an hour [18]. These formulations all work with integer path lengths and indicators of their values, which need Θ(n3)\Theta(n^3) variables.

The objective, however, is linear in the weights wij=2−τijw_{ij} = 2^{-\tau_{ij}}, of which there are only (n2)\binom{n}{2}. This paper asks what a formulation in these weights can and cannot do.

Our starting point is a pinning result (Theorem 1). Let us fix a tree TT, and consider the following constraints on nonnegative vectors ww: every bipartition of the leaves induced by an edge of TT (a split of TT) has a cut value, the total weight of the pairs of leaves it separates, of 12\frac{1}{2}; and an entropy of ww satisfies a lower bound valid for all trees. The weight vector of TT is the unique point that satisfies all these constraints simultaneously. Without the entropy bound, the points satisfying the split constraints form a polytope that, for n≥5n \ge5, is far from a single point. So in ww a tree is described exactly by 2n−32n-3 linear equalities and one convex inequality, without integer variables. This motivates the rest of the paper: committing splits as equalities is how a search in ww narrows down to a tree, the entropy bound is what turns a full set of committed splits into a single point, and the solver of Part II branches by committing or forbidding splits for this reason. Table 1 lists our main results.

resultrelationship to previous work
Thm 1: split equalities and one convex constraint pin a fixed treenew; elementary
Thm 2: the cut-value ladder; W=34W = \frac{3}{4} exactly at one NNInew; refines the floor W≥12W \ge\frac{1}{2}
Thm 3: ∣{S:WT[S]≤1}∣=2n2−10n+15\lvert\{S : W_T[S] \le1\}\rvert= 2n^2 - 10n + 15 for every treenew
Prop 4: O(n4)O(n^4) and Ω(n2)\Omega(n^2) bounds on crossing-graph clique coversnew
Thm 5: the conditions without four-point suffice if and only if n≤11n \le11new; computer-assisted
the unique n=12n = 12 counterexample and its constructionnew; existence due to [13]
Prop G.1: four-point on the quartets containing one leaf implies allshort proof of [13], thm. 2
resultrelationship to previous work
a linearity trade-off between ww and τ\tauobservation
the compact solver against the distance-indexed solvercomputational

Table 1. The main results of this paper and their relationship to previous work.

The rest of this paper is organised as follows. Part I contains the theoretical results. Section 2 sets out definitions and the two formulations. Section 3 proves the pinning theorem, the cut-value ladder and the invariant count, and Section 4 reviews the known facets of the BME polytope. Section 5 gives the polynomial clique cover and encodes splits by membership variables. Section 6 compares linearity in ww and in τ\tau and settles the sufficiency question. Part II contains the computational results: Section 7 describes the experimental setup and Section 8 the experiments. Section 9 discusses open problems. The appendices contain the proof of an inequality used in § 2.2.2 (Appendix § 3.4), the proofs of Theorems 2 and 3 (Appendix § 3.5), the enumeration behind Theorem 5 (Appendix § 3.6), the tables of results behind § 3.2 (Appendix § 3.7), the checks of numerical reliability (Appendix E), the compact solver’s branch and bound in pseudocode (Appendix F), and a short proof that the four-point and triangle conditions on the quartets and triples that contain one leaf imply them everywhere (Appendix G), and the lower bound of Proposition 4 with a smaller clique cover (Appendix § 3.11).

Part I: Theoretical results

Preliminaries

In this section we fix the notation for trees, splits and tree metrics (§ 2.1.1), state the problem (§ 2.1.2), introduce the weight space in which we work (§ 2.1.3), and set out the two integer programming models that the paper compares (§ 2.1.4).

Trees, splits and tree metrics

A phylogenetic tree on [n]={1,…,n}[n] = \{1,\ldots,n\} is a tree whose leaves are in bijection with [n][n] and none of whose internal vertices has degree 2. All trees are unrooted. A tree is binary if every internal vertex has degree 3; it then has 2n−32n - 3 edges (nn pendant, n−3n - 3 internal) and n−2n - 2 internal vertices. Contracting internal edges gives non-binary trees; the extreme case is the star, with one internal vertex. A cherry is a pair of leaves adjacent to the same internal vertex. The topology of a tree is the tree as a graph with labelled leaves, without edge lengths; we identify a tree with its topology.

A bipartition is an unordered pair {S,Sc}\{S,S^{c}\} with both blocks nonempty, where Sc=[n]∖SS^{c} = [n] \setminus S is the complement of SS. We name it by its smaller block, and when both blocks have n/2n/2 leaves, by the block not containing leaf 1. It is trivial if one block is a single leaf and nontrivial otherwise. Removing an edge ee of TT induces the bipartition SeS_e; the bipartitions induced this way are the splits of TT, of which nn are trivial (pendant edges) and n−3n - 3 nontrivial (internal edges). Two bipartitions are compatible if at least one of S∩S′S \cap S', S∩S′cS \cap S'^{c}, Sc∩S′S^{c} \cap S', Sc∩S′cS^{c} \cap S'^{c} is empty, and cross otherwise. A set of nontrivial bipartitions is the split set of a tree if and only if it is pairwise compatible [19, 20]; we call pairwise compatibility laminarity. There are (2n−5)!!=1⋅3⋅5⋯(2n−5)(2n - 5)!! = 1 \cdot3 \cdot5 \cdots(2n - 5) binary topologies on nn labelled leaves: about 2×1062 \times10^{6} for n=10n = 10, 2×10202 \times10^{20} for n=20n = 20 and 9×10369 \times10^{36} for n=30n = 30.

A nearest-neighbour interchange (NNI) across an internal edge vwvw, with subtrees A,BA,B hanging from uu and C,DC,D from vv, exchanges BB with CC or with DD. Each internal edge admits two NNIs, so a binary tree has 2(n−3)2(n - 3) NNI neighbours.

A symmetric nonnegative dd is a tree metric if and only if it satisfies the **four-point condition [19]: on every quartet {i,j,k,l}\{i,j,k,l\}, the larger two of dij+dkld_{ij}+d_{kl}, dik+djld_{ik}+d_{jl}, dil+djkd_{il}+d_{jk} are equal. A tree resolves the quartet as ab∣cdab|cd when the path between aa and bb is disjoint from the path between cc and dd. For the path lengths τ\tau of a binary tree, the two larger sums are then τac+τbd=τad+τbc\tau_{ac}+\tau_{bd}=\tau_{ad}+\tau_{bc}, and they exceed τab+τcd\tau_{ab}+\tau_{cd} by 2m≥22m \ge2, where mm is the number of internal edges between the paths. We call this the strong four-point condition.

The Balanced Minimum Evolution Problem

A dissimilarity matrix (or distance matrix) on [n][n] is a symmetric matrix DD with zero diagonal and nonnegative entries, where DijD_{ij} estimates the evolutionary distance between taxa ii and jj. Given DD, the minimum-evolution principle selects the tree of least estimated total length [21]. In the balanced version the length is L(T)=∑i<jDijwijL(T)=\sum_{i<j}D_{ij}w_{ij} with wij=2−τijw_{ij}=2^{-\tau_{ij}} [1], and the Balanced Minimum Evolution Problem (BMEP) is to minimize LL over binary topologies.

The weight space

For a binary tree TT write τij∈{2,…,n−1}\tau_{ij}\in\{2,\ldots,n-1\}, wij=2−τijw_{ij}=2^{-\tau_{ij}}, and wT=(wij)i<j∈R(n2)w_T=(w_{ij})_{i<j}\in\mathbb{R}^{\binom{n}{2}} for its weight vector. For any w∈R(n2)w\in\mathbb{R}^{\binom{n}{2}} and S⊆[n]S\subseteq[n], the cut value of SS is W[S]=∑i∈S,j∉SwijW[S]=\sum_{i\in S,j\notin S}w_{ij}, and WT[S]W_T[S] denotes the cut value for w=wTw=w_T. Each edge ee of TT defines the bipartition SeS_e of the leaves on its two sides.

Lemma 2.1 (edge cut values). For every edge ee of a binary tree TT, WT[Se]=12W_T[S_e]=\frac{1}{2}.

Proof. Let e=uve=uv, with leaf set AA on the side of uu and BB on the side of vv. Rooted at uu, the side of AA is a full binary tree (a single leaf if ee is a pendant edge); let aia_i be the number of edges from uu to leaf i∈Ai\in A. Then ∑i∈A2−ai=1\sum_{i\in A}2^{-a_i}=1, by induction on ∣A∣|A|: replacing a cherry at depth d+1d+1 by one leaf at depth dd keeps the sum, since 2⋅2−(d+1)=2−d2\cdot2^{-(d+1)}=2^{-d}. Likewise ∑j∈B2−bj=1\sum_{j\in B}2^{-b_j}=1, with bjb_j the number of edges from vv to jj. For i∈Ai\in A and j∈Bj\in B, τij=ai+1+bj\tau_{ij}=a_i+1+b_j, so

References

  1. [1]† [1] Y. Pauplin, “Direct calculation of a tree length using a distance matrix,” Journal of Molecular Evolution, vol. 51, no. 1, pp. 41–47, 2000, doi: 10.1007/s002390010065.DOI
  2. [2]† [2] R. Desper and O. Gascuel, “Theoretical foundation of the balanced minimum evolution method of phylogenetic inference and its relationship to weighted least-squares tree fitting,” Molecular Biology and Evolution, vol. 21, no. 3, pp. 587–598, 2004, doi: 10.1093/molbev/msh049.DOI
  3. [3]† [3] R. Desper and O. Gascuel, “Fast and accurate phylogeny reconstruction algorithms based on the minimum-evolution principle,” Journal of Computational Biology, vol. 9, no. 5, pp. 687–705, 2002, doi: 10.1089/106652702761034136.DOI
  4. [4]† [4] N. Saitou and M. Nei, “The neighbor-joining method: A new method for reconstructing phylogenetic trees,” Molecular Biology and Evolution, vol. 4, no. 4, pp. 406–425, 1987, doi: 10.1093/oxfordjournals.molbev.a040454.DOI
  5. [5]† [5] O. Gascuel and M. Steel, “Neighbor-joining revealed,” Molecular Biology and Evolution, vol. 23, no. 11, pp. 1997–2000, 2006, doi: 10.1093/molbev/msl072.DOI
  6. [6]⚖ [6] K. Eickmeyer, P. Huggins, L. Pachter, and R. Yoshida, “On the optimality of the neighbor-joining algorithm,” Algorithms for Molecular Biology, vol. 3, p. 5, 2008, doi: 10.1186/1748-7188-3-5.DOI
  7. [7]⚖ [7] S. Fiorini and G. Joret, “Approximating the balanced minimum evolution problem,” Operations Research Letters, vol. 40, no. 1, pp. 31–35, 2012, doi: 10.1016/j.orl.2011.10.003.DOI
  8. [8]⚖ [8] M. Frohn, “On the approximability of the fixed-tree balanced minimum evolution problem,” Optimization Letters, vol. 15, no. 6, pp. 2321–2329, 2021, doi: 10.1007/s11590-020-01677-x.DOI
  9. [9]⚖ [9] S. Forcey, L. Keefe, and W. Sands, “Facets of the balanced minimal evolution polytope,” Journal of Mathematical Biology, vol. 73, no. 2, pp. 447–468, 2016, doi: 10.1007/s00285-015-0957-1.DOI
  10. [10]⚖ [10] S. Forcey, L. Keefe, and W. Sands, “Split-facets for balanced minimal evolution polytopes and the permutoassociahedron,” Bulletin of Mathematical Biology, vol. 79, no. 5, pp. 975–994, 2017, doi: 10.1007/s11538-017-0264-7.DOI
  11. [11]D. C. Haws, T. L. Hodge, and R. Yoshida, “Optimality of the neighbor joining algorithm and faces of the balanced minimum evolution polytope,” Bulletin of Mathematical Biology, vol. 73, no. 11, pp. 2627–2648, 2011, doi: 10.1007/s11538-011-9640-x.DOI
  12. [12]D. Catanzaro, R. Pesenti, and L. A. Wolsey, “On the balanced minimum evolution polytope,” Discrete Optimization, vol. 36, p. 100570, 2020, doi: 10.1016/j.disopt.2020.100570.DOI
  13. [13]D. Catanzaro, R. Pesenti, A. Sapucaia, and L. A. Wolsey, “Optimizing over path-length matrices of unrooted binary trees,” Mathematical Programming, vol. 215, no. 1–2, pp. 453–505, 2026, doi: 10.1007/s10107-025-02226-z.DOI
  14. [14]D. Catanzaro, M. Frohn, O. Gascuel, and R. Pesenti, “A tutorial on the balanced minimum evolution problem,” European Journal of Operational Research, vol. 300, no. 1, pp. 1–19, 2022, doi: 10.1016/j.ejor.2021.08.004.DOI
  15. [15]R. Aringhieri, D. Catanzaro, and M. Di Summa, “Optimal solutions for the balanced minimum evolution problem,” Computers & Operations Research, vol. 38, no. 12, pp. 1845–1854, 2011, doi: 10.1016/j.cor.2011.02.020.DOI
  16. [16]D. Catanzaro, M. Labbé, R. Pesenti, and J.-J. Salazar-González, “The balanced minimum evolution problem,” INFORMS Journal on Computing, vol. 24, no. 2, pp. 276–294, 2012, doi: 10.1287/ijoc.1110.0455.DOI
  17. [17]D. Catanzaro, M. Frohn, O. Gascuel, and R. Pesenti, “A massively parallel branch-&-bound algorithm for the balanced minimum evolution problem,” Computers & Operations Research, vol. 158, p. 106308, 2023, doi: 10.1016/j.cor.2023.106308.DOI
  18. [18]D. Catanzaro, H. Dehaybe, and R. Pesenti, “New heuristics for phylogeny estimation under the balanced minimum evolution criterion,” Bioinformatics, vol. 41, no. 7, p. btaf361, 2025, doi: 10.1093/bioinformatics/btaf361.DOI
  19. [19]P. Buneman, “The recovery of trees from measures of dissimilarity,” in Mathematics in the Archaeological and Historical Sciences, F. R. Hodson, D. G. Kendall, and P. Tautu, Eds., Edinburgh University Press, 1971, pp. 387–395.
  20. [20]C. Semple and M. Steel, Phylogenetics. in Oxford Lecture Series in Mathematics and its Applications, no. 24. Oxford University Press, 2003.
  21. [21]A. Rzhetsky and M. Nei, “Theoretical foundation of the minimum-evolution method of phylogenetic inference,” Molecular Biology and Evolution, vol. 10, no. 5, pp. 1073–1095, 1993, doi: 10.1093/oxfordjournals.molbev.a040056.DOI
  22. [22]T. M. Cover and J. A. Thomas, Elements of Information Theory, 2nd ed. Hoboken, NJ: Wiley, 2006. doi: 10.1002/047174882X.DOI
  23. [23]D. Catanzaro, M. Frohn, and R. Pesenti, “An information theory perspective on the balanced minimum evolution problem,” Operations Research Letters, vol. 48, no. 3, pp. 362–367, 2020, doi: 10.1016/j.orl.2020.04.010.DOI
  24. [24]J. E. Kelley Jr., “The cutting-plane method for solving convex programs,” Journal of the Society for Industrial and Applied Mathematics, vol. 8, no. 4, pp. 703–712, 1960, doi: 10.1137/0108053.DOI
  25. [25]K. Fukuda, “cddlib: An implementation of the double description method.” https://github.com/cddlib/cddlib.
  26. [26]B. Bollobás, “Sperner systems consisting of pairs of complementary subsets,” Journal of Combinatorial Theory, Series A, vol. 15, no. 3, pp. 363–366, 1973, doi: 10.1016/0097-3165(73)90086-1.DOI
  27. [27]C. Greene, G. O. H. Katona, and D. J. Kleitman, “Extensions of the Erdős–Ko–Rado theorem,” Studies in Applied Mathematics, vol. 55, no. 1, pp. 1–8, 1976, doi: 10.1002/sapm19765511.DOI
  28. [28]G. P. McCormick, “Computability of global solutions to factorable nonconvex programs: Part I – convex underestimating problems,” Mathematical Programming, vol. 10, no. 1, pp. 147–175, 1976, doi: 10.1007/BF01580665.DOI
  29. [29]F. Barahona and A. R. Mahjoub, “On the cut polytope,” Mathematical Programming, vol. 36, no. 2, pp. 157–173, 1986, doi: 10.1007/BF02592023.DOI
  30. [30]MOSEK ApS, MOSEK optimizer API for Python, version 11. 2025. Available: https://docs.mosek.com/latest/pythonapi/index.html
  31. [31]S. Diamond and S. Boyd, “CVXPY: A Python-embedded modeling language for convex optimization,” Journal of Machine Learning Research, vol. 17, no. 83, pp. 1–5, 2016.
  32. [32]V. Lefort, R. Desper, and O. Gascuel, “FastME 2.0: A comprehensive, accurate, and fast distance-based phylogeny inference program,” Molecular Biology and Evolution, vol. 32, no. 10, pp. 2798–2800, 2015, doi: 10.1093/molbev/msv150.DOI
  33. [33]V. V. Vazirani and M. Yannakakis, “Suboptimal cuts: Their enumeration, weight and number,” in Automata, Languages and Programming (ICALP 1992), in Lecture Notes in Computer Science, vol. 623. Springer, 1992, pp. 366–377. doi: 10.1007/3-540-55719-9_88.DOI
  34. [34]A. Neumaier and O. Shcherbina, “Safe bounds in linear and mixed-integer linear programming,” Mathematical Programming, vol. 99, no. 2, pp. 283–296, 2004, doi: 10.1007/s10107-030-0433-3.
  35. [35]D. Catanzaro, M. Frohn, and R. Pesenti, “On numerical stability and statistical consistency of the balanced minimum evolution problem,” Center for Operations Research and Econometrics, Université catholique de Louvain, LIDAM Discussion Paper CORE 2021/26, 2021. Available: https://hdl.handle.net/2078.5/108222
  36. [36]S. Fiorini, S. Massar, S. Pokutta, H. R. Tiwary, and R. de Wolf, “Exponential lower bounds for polytopes in combinatorial optimization,” Journal of the ACM, vol. 62, no. 2, p. 17, 2015, doi: 10.1145/2716307.DOI
  37. [37]T. Rothvoß, “The matching polytope has exponential extension complexity,” Journal of the ACM, vol. 64, no. 6, p. 41, 2017, doi: 10.1145/3127497.DOI
  38. [38]D. L. Applegate et al., “Certification of an optimal TSP tour through 85,900 cities,” Operations Research Letters, vol. 37, no. 1, pp. 11–15, 2009, doi: 10.1016/j.orl.2008.09.006.DOI
  39. [39]K. K. H. Cheung, A. Gleixner, and D. E. Steffy, “Verifying integer programming results,” in Integer Programming and Combinatorial Optimization (IPCO 2017), in Lecture Notes in Computer Science, vol. 10328. Springer, 2017, pp. 148–160. doi: 10.1007/978-3-319-59250-3_13.DOI
  40. [40]N. J. Higham, Accuracy and Stability of Numerical Algorithms, 2nd ed. Philadelphia: SIAM, 2002. doi: 10.1137/1.9780898718027.
  41. [41]J. Felsenstein, “The number of evolutionary trees,” Systematic Zoology, vol. 27, no. 1, pp. 27–33, 1978, doi: 10.2307/2412810.DOI
  42. [42]D. Ruiz, “A scaling algorithm to equilibrate both rows and columns norms in matrices,” Rutherford Appleton Laboratory, Oxon, UK, and ENSEEIHT-IRIT, Toulouse, France, RAL-TR-2001-034, 2001.
  43. [43]G. O. H. Katona, “A simple proof of the Erdős–Chao Ko–Rado theorem,” Journal of Combinatorial Theory, Series B, vol. 13, no. 2, pp. 183–184, 1972, doi: 10.1016/0095-8956(72)90054-8.DOI

Paper details

vlnc:W_bpasv4dc
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 10

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents