public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jerry James <loganjerry@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/coin-or-HiGHS] rawhide: Version 1.16.0
Date: Mon, 30 Nov 2026 18:30:38 GMT [thread overview]
Message-ID: <179606343884.1.7717981063459430365.rpms-coin-or-HiGHS-ba79e1ef7a06@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/coin-or-HiGHS
Branch : rawhide
Commit : ba79e1ef7a06b0b3cf8077bae9f7509dd2ffc59e
Author : Jerry James <loganjerry@gmail.com>
Date : 2026-11-30T11:30:26-07:00
Stats : +413/-172 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/coin-or-HiGHS/c/ba79e1ef7a06b0b3cf8077bae9f7509dd2ffc59e?branch=rawhide
Log:
Version 1.16.0
---
diff --git a/coin-or-HiGHS-popcount.patch b/coin-or-HiGHS-popcount.patch
index ddd10e3..a0f22b1 100644
--- a/coin-or-HiGHS-popcount.patch
+++ b/coin-or-HiGHS-popcount.patch
@@ -1,28 +1,19 @@
---- HiGHS-1.11.0/CMakeLists.txt.orig 2025-06-05 19:10:03.348124466 -0600
-+++ HiGHS-1.11.0/CMakeLists.txt 2025-06-05 19:13:50.649049342 -0600
-@@ -380,20 +380,6 @@ if(NOT FAST_BUILD)
- endif()
-
- include(CheckCXXCompilerFlag)
--if (NOT HIGHS_COVERAGE AND NOT APPLE)
-- if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(ppc64|powerpc64)")
-- check_cxx_compiler_flag("-mpopcntd" COMPILER_SUPPORTS_POPCNTD)
-- if(COMPILER_SUPPORTS_POPCNTD)
-- # set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mpopcntd")
-- add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:-mpopcntd>")
-- endif()
+--- HiGHS-1.16.0/CMakeLists.txt.orig 2026-11-13 14:32:22.983464137 -0700
++++ HiGHS-1.16.0/CMakeLists.txt 2026-11-13 14:33:38.778147634 -0700
+@@ -565,11 +565,6 @@ if (NOT HIGHS_COVERAGE AND NOT APPLE)
+ # set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mpopcntd")
+ add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:-mpopcntd>")
+ endif()
- else()
- check_cxx_compiler_flag("-mpopcnt" COMPILER_SUPPORTS_POPCNT)
- if(COMPILER_SUPPORTS_POPCNT)
- add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:-mpopcnt>")
- endif()
-- endif()
--endif()
-
- option(DEBUGSOL "check the debug solution" OFF)
+ endif()
+ endif()
---- HiGHS-1.11.0/highs/util/HighsHash.h.orig 2025-06-05 18:22:05.000000000 -0600
-+++ HiGHS-1.11.0/highs/util/HighsHash.h 2025-06-05 19:13:13.795265102 -0600
+--- HiGHS-1.16.0/highs/util/HighsHash.h.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/util/HighsHash.h 2026-11-13 14:33:02.101876369 -0700
@@ -103,7 +103,16 @@ struct HighsHashHelpers {
static int log2i(uint32_t n) { return 31 - __builtin_clz(n); }
diff --git a/coin-or-HiGHS-unbundle.patch b/coin-or-HiGHS-unbundle.patch
index 2923838..201556a 100644
--- a/coin-or-HiGHS-unbundle.patch
+++ b/coin-or-HiGHS-unbundle.patch
@@ -1,5 +1,5 @@
---- HiGHS-1.15.1/app/HighsAppExternalDeps.h.orig 2026-07-02 00:42:37.000000000 -0600
-+++ HiGHS-1.15.1/app/HighsAppExternalDeps.h 2026-07-04 12:00:19.480938223 -0600
+--- HiGHS-1.16.0/app/HighsAppExternalDeps.h.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/app/HighsAppExternalDeps.h 2026-11-13 14:36:29.276354593 -0700
@@ -13,7 +13,7 @@
#define HIGHS_APP_EXTERNAL_DEPS_H_
@@ -9,8 +9,8 @@
namespace HighsExtras {
struct app_family {};
---- HiGHS-1.15.1/app/HighsRuntimeOptions.h.orig 2026-07-02 00:42:37.000000000 -0600
-+++ HiGHS-1.15.1/app/HighsRuntimeOptions.h 2026-07-04 11:59:29.528548797 -0600
+--- HiGHS-1.16.0/app/HighsRuntimeOptions.h.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/app/HighsRuntimeOptions.h 2026-11-13 14:36:29.276584081 -0700
@@ -15,7 +15,7 @@
#include <cassert>
#include <tuple>
@@ -20,9 +20,20 @@
#include "HConfig.h"
#include "HighsAppExternalDeps.h"
#include "io/HighsIO.h"
---- HiGHS-1.15.1/cmake/cpp-highs.cmake.orig 2026-07-02 00:42:37.000000000 -0600
-+++ HiGHS-1.15.1/cmake/cpp-highs.cmake 2026-09-21 11:41:30.542864415 -0600
-@@ -113,7 +113,7 @@ endif()
+--- HiGHS-1.16.0/check/TestLpFileFormat.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/check/TestLpFileFormat.cpp 2026-11-29 20:51:15.325371634 -0700
+@@ -1867,7 +1867,7 @@ TEST_CASE("lp-file-format-corrupt-gzip",
+ std::string log;
+ REQUIRE(readLp(highs, filename, content, log) == HighsStatus::kError);
+ #ifdef ZLIB_FOUND
+- REQUIRE(log.find("invalid block type") != std::string::npos);
++ REQUIRE(log.find("unexpected control character") != std::string::npos);
+ #endif
+ }
+
+--- HiGHS-1.16.0/cmake/cpp-highs.cmake.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/cmake/cpp-highs.cmake 2026-11-13 14:36:29.276771460 -0700
+@@ -96,7 +96,7 @@ endif()
if(ZLIB AND ZLIB_FOUND)
@@ -31,9 +42,9 @@
set(CONF_ZLIB ${CONF_Z})
else()
set(CONF_ZLIB "")
---- HiGHS-1.15.1/CMakeLists.txt.orig 2026-09-21 11:38:27.028216419 -0600
-+++ HiGHS-1.15.1/CMakeLists.txt 2026-09-21 11:38:39.972761349 -0600
-@@ -558,8 +558,9 @@ if(NOT FAST_BUILD OR CSHARP)
+--- HiGHS-1.16.0/CMakeLists.txt.orig 2026-11-29 20:50:19.649306312 -0700
++++ HiGHS-1.16.0/CMakeLists.txt 2026-11-29 20:50:30.017567392 -0700
+@@ -659,8 +659,9 @@ if(NOT FAST_BUILD OR CSHARP)
endif()
# if zlib is found, then we can enable reading zlib-compressed input
@@ -44,10 +55,10 @@
+ set(ZLIB_FOUND ON)
endif()
- if (NOT CMAKE_INSTALL_DOCDIR STREQUAL "" AND BUILD_CXX)
---- HiGHS-1.15.1/cmake/sources.cmake.orig 2026-07-02 00:42:37.000000000 -0600
-+++ HiGHS-1.15.1/cmake/sources.cmake 2026-07-13 09:55:16.533539008 -0600
-@@ -463,9 +393,6 @@ set(highs_sources
+ # Private dependencies of a static highs for highs.pc. Shared builds list none
+--- HiGHS-1.16.0/cmake/sources.cmake.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/cmake/sources.cmake 2026-11-13 14:36:29.277212021 -0700
+@@ -481,9 +481,6 @@ set(highs_sources
# add catch header?
set(highs_headers
@@ -57,8 +68,8 @@
interfaces/highs_c_api.h
io/Filereader.h
io/FilereaderLp.h
---- HiGHS-1.15.1/highs/CMakeLists.txt.orig 2026-09-21 11:38:23.756563508 -0600
-+++ HiGHS-1.15.1/highs/CMakeLists.txt 2026-09-21 11:38:39.973313078 -0600
+--- HiGHS-1.16.0/highs/CMakeLists.txt.orig 2026-11-29 20:50:16.313212929 -0700
++++ HiGHS-1.16.0/highs/CMakeLists.txt 2026-11-29 20:50:30.017976114 -0700
@@ -57,8 +57,8 @@ if(NOT FAST_BUILD)
)
@@ -70,7 +81,7 @@
endif()
# set the install rpath to the installed destination
-@@ -314,10 +314,7 @@ else()
+@@ -334,10 +334,7 @@ else()
if(ZLIB AND ZLIB_FOUND)
@@ -82,18 +93,18 @@
endif()
# allow consumers of highs to be aware of potential external dependencies
---- HiGHS-1.15.1/highs/HighsExternalDeps.cpp.orig 2026-07-02 00:42:37.000000000 -0600
-+++ HiGHS-1.15.1/highs/HighsExternalDeps.cpp 2026-07-04 11:56:41.546978695 -0600
-@@ -15,7 +15,7 @@ namespace HighsExtras {
-
+--- HiGHS-1.16.0/highs/HighsExternalDeps.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/HighsExternalDeps.cpp 2026-11-13 16:39:08.665744650 -0700
+@@ -15,7 +15,7 @@
+ // with system typedefs (e.g., clock_t) via transitive includes.
+ // ZLIB_VERSION macro is still usable inside the namespace below.
#ifdef ZLIB_FOUND
- constexpr bool __zlib_enabled = true;
-#include "zlib.h" // defines ZLIB_VERSION
+#include <zlib-ng.h> // defines ZLIB_VERSION
- #else
- constexpr bool __zlib_enabled = false;
- #define ZLIB_VERSION "unknown"
-@@ -30,7 +30,7 @@ constexpr bool __cuda_enabled = false;
+ #endif
+
+ namespace HighsExtras {
+@@ -36,7 +36,7 @@ constexpr bool __cuda_enabled = false;
const HighsExtrasFeatureInfo highs_family_info_[] = {
{"pdqsort", "git:b1ef26a", "Zlib", true},
{"zstr", "1.0.6", "MIT", __zlib_enabled},
@@ -102,19 +113,8 @@
{"NVIDIA Driver API", "runtime", "N/A (not redistributed)",
__cuda_enabled}};
---- HiGHS-1.15.1/highs/io/filereaderlp/reader.cpp.orig 2026-07-02 00:42:37.000000000 -0600
-+++ HiGHS-1.15.1/highs/io/filereaderlp/reader.cpp 2026-07-04 10:06:20.514832612 -0600
-@@ -17,7 +17,7 @@
- #include "builder.hpp"
- #include "def.hpp"
- #ifdef ZLIB_FOUND
--#include "../extern/zstr/zstr.hpp"
-+#include <zstr/zstr.hpp>
- #endif
-
- // Cygwin doesn't come with an implementation for strdup if compiled with
---- HiGHS-1.15.1/highs/io/HMpsFF.cpp.orig 2026-07-02 00:42:37.000000000 -0600
-+++ HiGHS-1.15.1/highs/io/HMpsFF.cpp 2026-07-04 10:06:20.515144022 -0600
+--- HiGHS-1.16.0/highs/io/HMpsFF.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/io/HMpsFF.cpp 2026-11-13 14:36:38.936521212 -0700
@@ -11,7 +11,7 @@
#include "lp_data/HighsModelUtils.h"
@@ -124,8 +124,8 @@
#endif
namespace free_format_parser {
---- HiGHS-1.15.1/highs/io/HMPSIO.cpp.orig 2026-07-02 00:42:37.000000000 -0600
-+++ HiGHS-1.15.1/highs/io/HMPSIO.cpp 2026-07-04 10:06:20.515451596 -0600
+--- HiGHS-1.16.0/highs/io/HMPSIO.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/io/HMPSIO.cpp 2026-11-13 14:36:38.937008140 -0700
@@ -21,7 +21,7 @@
#include "util/stringutil.h"
@@ -135,8 +135,19 @@
#endif
using std::map;
---- HiGHS-1.15.1/highs/ipm/ipx/model.cc.orig 2026-07-02 00:42:37.000000000 -0600
-+++ HiGHS-1.15.1/highs/ipm/ipx/model.cc 2026-07-04 10:06:20.516406035 -0600
+--- HiGHS-1.16.0/highs/io/LpReader.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/io/LpReader.cpp 2026-11-13 14:39:06.126671912 -0700
+@@ -89,7 +89,7 @@
+
+ #include "HConfig.h" // for ZLIB_FOUND
+ #ifdef ZLIB_FOUND
+-#include "../extern/zstr/zstr.hpp"
++#include <zstr/zstr.hpp>
+ #endif
+
+ namespace lp_reader {
+--- HiGHS-1.16.0/highs/ipm/ipx/model.cc.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/ipm/ipx/model.cc 2026-11-13 14:36:38.937323408 -0700
@@ -3,7 +3,7 @@
#include <cassert>
#include <cmath>
@@ -155,8 +166,8 @@
for (Int j = 1; j < num_cols_; j++) {
if (colcount[j] >
---- HiGHS-1.15.1/highs/ipm/ipx/sparse_matrix.cc.orig 2026-07-02 00:42:37.000000000 -0600
-+++ HiGHS-1.15.1/highs/ipm/ipx/sparse_matrix.cc 2026-07-04 10:06:20.516665388 -0600
+--- HiGHS-1.16.0/highs/ipm/ipx/sparse_matrix.cc.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/ipm/ipx/sparse_matrix.cc 2026-11-13 14:36:38.937618758 -0700
@@ -4,7 +4,7 @@
#include <cmath>
#include <utility>
@@ -175,8 +186,8 @@
for (Int k = 0, p = begin(j); p < end(j); k++, p++) {
index(p) = work[k].first;
value(p) = work[k].second;
---- HiGHS-1.15.1/highs/ipm/ipx/utils.cc.orig 2026-07-02 00:42:37.000000000 -0600
-+++ HiGHS-1.15.1/highs/ipm/ipx/utils.cc 2026-07-04 10:06:20.516815548 -0600
+--- HiGHS-1.16.0/highs/ipm/ipx/utils.cc.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/ipm/ipx/utils.cc 2026-11-13 14:36:38.937807179 -0700
@@ -3,7 +3,7 @@
#include <cassert>
#include <cmath>
@@ -200,8 +211,8 @@
return std::make_pair(values[i], i) < std::make_pair(values[j], j);
});
---- HiGHS-1.15.1/highs/mip/HighsCliqueTable.cpp.orig 2026-07-02 00:42:37.000000000 -0600
-+++ HiGHS-1.15.1/highs/mip/HighsCliqueTable.cpp 2026-07-04 10:06:20.517038293 -0600
+--- HiGHS-1.16.0/highs/mip/HighsCliqueTable.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/mip/HighsCliqueTable.cpp 2026-11-13 16:27:13.665081729 -0700
@@ -12,7 +12,7 @@
#include <cstdio>
#include <numeric>
@@ -211,7 +222,7 @@
#include "mip/HighsCutPool.h"
#include "mip/HighsDomain.h"
#include "mip/HighsMipSolver.h"
-@@ -252,7 +252,7 @@ void HighsCliqueTable::bronKerboschRecur
+@@ -292,7 +292,7 @@ void HighsCliqueTable::bronKerboschRecur
++k;
}
@@ -220,7 +231,7 @@
return std::make_pair(a.weight(data.sol), a.index()) >
std::make_pair(b.weight(data.sol), b.index());
});
-@@ -514,7 +514,7 @@ void HighsCliqueTable::queryNeighbourhoo
+@@ -551,7 +551,7 @@ void HighsCliqueTable::queryNeighbourhoo
d.neighbourhoodInds.end());
numQueries += d.numQueries;
});
@@ -229,7 +240,7 @@
}
}
-@@ -902,7 +902,7 @@ void HighsCliqueTable::extractCliques(
+@@ -956,7 +956,7 @@ void HighsCliqueTable::extractCliques(
// only one binary means we do have no cliques
if (nbin <= 1) return;
@@ -238,7 +249,16 @@
return std::make_pair(vals[p1], p1) > std::make_pair(vals[p2], p2);
});
// check if any cliques exists
-@@ -1010,7 +1010,7 @@ void HighsCliqueTable::cliquePartition(c
+@@ -1035,7 +1035,7 @@ HighsInt HighsCliqueTable::extendClique(
+ HighsInt seedPos, HighsInt extensionEnd, const Comparator& candidateOrder) {
+ for (HighsInt i = seedPos; i < extensionEnd; ++i) {
+ if (Sort)
+- pdqsort_branchless(clqVars.begin() + i, clqVars.begin() + extensionEnd,
++ boost::sort::pdqsort_branchless(clqVars.begin() + i, clqVars.begin() + extensionEnd,
+ candidateOrder);
+ CliqueVar v = clqVars[i];
+ HighsInt extensionStart = i + 1;
+@@ -1080,7 +1080,7 @@ void HighsCliqueTable::cliquePartition(c
std::vector<HighsInt>& partitionStart) {
randgen.shuffle(clqVars.data(), clqVars.size());
@@ -247,7 +267,7 @@
[&](CliqueVar v1, CliqueVar v2) {
return (2 * v1.val - 1) * objective[v1.col] >
(2 * v2.val - 1) * objective[v2.col];
-@@ -1030,7 +1030,7 @@ void HighsCliqueTable::cliquePartition(c
+@@ -1100,7 +1100,7 @@ void HighsCliqueTable::cliquePartition(c
partitionStart.push_back(i);
extensionEnd = numClqVars;
if (lastSwappedIndex >= i)
@@ -256,7 +276,7 @@
clqVars.begin() + lastSwappedIndex + 1,
[&](CliqueVar v1, CliqueVar v2) {
return (2 * v1.val - 1) * objective[v1.col] >
-@@ -1211,7 +1211,7 @@ void HighsCliqueTable::extractCliquesFro
+@@ -1343,7 +1343,7 @@ void HighsCliqueTable::extractCliquesFro
std::vector<CliqueVar> clique;
clique.reserve(nbin);
@@ -265,7 +285,7 @@
return std::make_pair(std::abs(vals[p1]), p1) >
std::make_pair(std::abs(vals[p2]), p2);
});
-@@ -1406,7 +1406,7 @@ void HighsCliqueTable::extractObjCliques
+@@ -1572,7 +1572,7 @@ void HighsCliqueTable::extractObjCliques
std::vector<CliqueVar> clique;
clique.reserve(nbin);
@@ -274,8 +294,8 @@
return std::make_pair(std::fabs(vals[p1]), p1) >
std::make_pair(std::fabs(vals[p2]), p2);
});
---- HiGHS-1.15.1/highs/mip/HighsCutGeneration.cpp.orig 2026-07-02 00:42:37.000000000 -0600
-+++ HiGHS-1.15.1/highs/mip/HighsCutGeneration.cpp 2026-07-04 10:19:20.617855675 -0600
+--- HiGHS-1.16.0/highs/mip/HighsCutGeneration.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/mip/HighsCutGeneration.cpp 2026-11-13 14:36:38.938488630 -0700
@@ -7,7 +7,7 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#include "mip/HighsCutGeneration.h"
@@ -314,7 +334,7 @@
HighsCDouble abartmp = vals[cover[0]];
@@ -228,7 +228,7 @@ bool HighsCutGeneration::separateLiftedM
- for (HighsInt i = 0; i != coversize; ++i) coverflag[cover[i]] = 1;
+ for (HighsInt i = 0; i != coversize; ++i) coverflag[cover[i]] = true;
- pdqsort_branchless(cover.begin(), cover.end(),
+ boost::sort::pdqsort_branchless(cover.begin(), cover.end(),
@@ -322,7 +342,7 @@
HighsCDouble sum = 0;
@@ -291,7 +291,7 @@ bool HighsCutGeneration::separateLiftedM
- for (HighsInt i : cover) coverflag[i] = 1;
+ for (HighsInt i : cover) coverflag[i] = true;
auto comp = [&](HighsInt a, HighsInt b) { return vals[a] > vals[b]; };
- pdqsort_branchless(cover.begin(), cover.end(), comp);
@@ -339,8 +359,8 @@
double curdelta = deltas[0];
for (size_t i = 1; i < deltas.size(); ++i) {
if (deltas[i] - curdelta <= 10 * feastol)
---- HiGHS-1.15.1/highs/mip/HighsCutPool.cpp.orig 2026-07-02 00:42:37.000000000 -0600
-+++ HiGHS-1.15.1/highs/mip/HighsCutPool.cpp 2026-07-04 10:06:20.517726165 -0600
+--- HiGHS-1.16.0/highs/mip/HighsCutPool.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/mip/HighsCutPool.cpp 2026-11-13 14:36:38.938749857 -0700
@@ -11,7 +11,7 @@
#include <cassert>
#include <numeric>
@@ -368,8 +388,8 @@
sortBuffer.begin(), sortBuffer.end(),
[](const std::pair<HighsInt, double>& a,
const std::pair<HighsInt, double>& b) { return a.first < b.first; });
---- HiGHS-1.15.1/highs/mip/HighsDomain.cpp.orig 2026-07-02 00:42:37.000000000 -0600
-+++ HiGHS-1.15.1/highs/mip/HighsDomain.cpp 2026-07-04 10:06:20.518071969 -0600
+--- HiGHS-1.16.0/highs/mip/HighsDomain.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/mip/HighsDomain.cpp 2026-11-13 14:36:38.939237636 -0700
@@ -12,7 +12,7 @@
#include <numeric>
#include <queue>
@@ -379,7 +399,7 @@
#include "mip/HighsConflictPool.h"
#include "mip/HighsCutPool.h"
#include "mip/HighsMipSolverData.h"
-@@ -2832,7 +2832,7 @@ bool HighsDomain::ConflictSet::explainBo
+@@ -3086,7 +3086,7 @@ bool HighsDomain::ConflictSet::explainBo
if (domchgVal == 0) return false;
@@ -388,7 +408,7 @@
// to explain the bound change we start from the bound constraint,
// multiply it by the columns coefficient in the constraint. Then the
-@@ -2939,7 +2939,7 @@ bool HighsDomain::ConflictSet::explainBo
+@@ -3197,7 +3197,7 @@ bool HighsDomain::ConflictSet::explainBo
if (domchgVal == 0) return false;
@@ -397,7 +417,7 @@
assert(domchgVal != 0);
-@@ -3410,7 +3410,7 @@ bool HighsDomain::ConflictSet::explainIn
+@@ -3675,7 +3675,7 @@ bool HighsDomain::ConflictSet::explainIn
resolveBuffer.push_back(cand);
}
@@ -405,8 +425,8 @@
+ boost::sort::pdqsort(resolveBuffer.begin(), resolveBuffer.end());
// compute the lower bound of M that is necessary
- double Mupper = rhs - std::max(10.0, std::fabs(rhs)) *
-@@ -3457,7 +3457,7 @@ bool HighsDomain::ConflictSet::explainIn
+ double Mupper = rhs - std::max(10.0, std::fabs(rhs)) * localdom.feastol();
+@@ -3721,7 +3721,7 @@ bool HighsDomain::ConflictSet::explainIn
resolveBuffer.push_back(cand);
}
@@ -414,9 +434,29 @@
+ boost::sort::pdqsort(resolveBuffer.begin(), resolveBuffer.end());
// compute the lower bound of M that is necessary
- double Mlower = rhs + std::max(10.0, std::fabs(rhs)) *
---- HiGHS-1.15.1/highs/mip/HighsImplications.cpp.orig 2026-07-02 00:42:37.000000000 -0600
-+++ HiGHS-1.15.1/highs/mip/HighsImplications.cpp 2026-07-04 10:06:20.518461686 -0600
+ double Mlower = rhs + std::max(10.0, std::fabs(rhs)) * localdom.feastol();
+--- HiGHS-1.16.0/highs/mip/HighsDomain.h.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/mip/HighsDomain.h 2026-11-13 14:44:07.299454392 -0700
+@@ -18,7 +18,7 @@
+ #include "HighsPseudocost.h"
+ #include "mip/HighsDomainChange.h"
+ #include "mip/HighsMipSolver.h"
+-#include "pdqsort/pdqsort.h"
++#include <boost/sort/pdqsort/pdqsort.hpp>
+ #include "util/HighsCDouble.h"
+ #include "util/HighsRbTree.h"
+
+@@ -758,7 +758,7 @@ class HighsDomain {
+ if (colLowerPos_[col] != -1) positions.push_back(colLowerPos_[col]);
+ if (colUpperPos_[col] != -1) positions.push_back(colUpperPos_[col]);
+ }
+- pdqsort(positions.begin(), positions.end());
++ boost::sort::pdqsort(positions.begin(), positions.end());
+ reducedstack.reserve(positions.size());
+ branchingPositions.reserve(std::min(positions.size(), branchPos_.size()));
+ for (const HighsInt i : positions) {
+--- HiGHS-1.16.0/highs/mip/HighsImplications.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/mip/HighsImplications.cpp 2026-11-13 14:40:45.485626201 -0700
@@ -7,7 +7,7 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#include "mip/HighsImplications.h"
@@ -426,28 +466,48 @@
#include "mip/HighsCliqueTable.h"
#include "mip/HighsMipSolverData.h"
#include "mip/MipTimer.h"
-@@ -96,7 +96,7 @@ bool HighsImplications::computeImplicati
- return !globaldomain.isBinary(a.column);
- });
+@@ -202,7 +202,7 @@ bool HighsImplications::computeImplicati
+ addImplication(idx, i->column, implication);
+ }
+
+- pdqsort(implics.begin(), implics.end(),
++ boost::sort::pdqsort(implics.begin(), implics.end(),
+ [](const HighsDomainChange& a, const HighsDomainChange& b) {
+ return a.column < b.column;
+ });
+--- HiGHS-1.16.0/highs/mip/HighsMachineSchedSeparator.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/mip/HighsMachineSchedSeparator.cpp 2026-11-13 14:44:41.107212222 -0700
+@@ -10,7 +10,7 @@
-- pdqsort(implics.begin(), binstart);
-+ boost::sort::pdqsort(implics.begin(), binstart);
+ #include "mip/HighsMachineSchedSeparator.h"
- std::array<HighsCliqueTable::CliqueVar, 2> clique;
- clique[0] = HighsCliqueTable::CliqueVar(col, val);
---- HiGHS-1.15.1/highs/mip/HighsMipSolverData.cpp.orig 2026-07-02 00:42:37.000000000 -0600
-+++ HiGHS-1.15.1/highs/mip/HighsMipSolverData.cpp 2026-07-04 10:06:20.518709448 -0600
+-#include "../extern/pdqsort/pdqsort.h"
++#include <boost/sort/pdqsort/pdqsort.hpp>
+ #include "mip/HighsCutGeneration.h"
+ #include "mip/HighsLpRelaxation.h"
+ #include "mip/HighsMipSolverData.h"
+@@ -212,7 +212,7 @@ bool HighsMachineSchedSeparator::findSin
+ potentialNeighbours.emplace_back(std::get<0>(arc));
+ }
+ }
+- pdqsort(potentialNeighbours.begin(), potentialNeighbours.end(),
++ boost::sort::pdqsort(potentialNeighbours.begin(), potentialNeighbours.end(),
+ [&](const HighsInt c1, const HighsInt c2) {
+ return degrees[c1] > degrees[c2];
+ });
+--- HiGHS-1.16.0/highs/mip/HighsMipSolverData.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/mip/HighsMipSolverData.cpp 2026-11-13 14:41:34.117254151 -0700
@@ -10,7 +10,7 @@
#include <random>
#include <sstream>
-#include "../extern/pdqsort/pdqsort.h"
+#include <boost/sort/pdqsort/pdqsort.hpp>
+ #include "lp_data/HighsLpUtils.h"
#include "lp_data/HighsModelUtils.h"
#include "mip/HighsPseudocost.h"
- #include "mip/HighsRedcostFixing.h"
---- HiGHS-1.15.1/highs/mip/HighsModkSeparator.cpp.orig 2026-07-02 00:42:37.000000000 -0600
-+++ HiGHS-1.15.1/highs/mip/HighsModkSeparator.cpp 2026-07-04 10:06:20.518981605 -0600
+--- HiGHS-1.16.0/highs/mip/HighsModkSeparator.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/mip/HighsModkSeparator.cpp 2026-11-13 14:36:38.940562405 -0700
@@ -12,7 +12,7 @@
#include <unordered_set>
@@ -466,8 +526,8 @@
if (!usedWeights.insert(weights)) return;
assert(lpAggregator.isEmpty());
---- HiGHS-1.15.1/highs/mip/HighsObjectiveFunction.cpp.orig 2026-07-02 00:42:37.000000000 -0600
-+++ HiGHS-1.15.1/highs/mip/HighsObjectiveFunction.cpp 2026-07-04 10:06:20.519194452 -0600
+--- HiGHS-1.16.0/highs/mip/HighsObjectiveFunction.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/mip/HighsObjectiveFunction.cpp 2026-11-13 14:36:38.940790160 -0700
@@ -10,7 +10,7 @@
#include <numeric>
@@ -486,8 +546,8 @@
[&](HighsInt i, HighsInt j) {
return std::make_pair((HighsUInt)colToPartition[i],
HighsHashHelpers::hash(i)) <
---- HiGHS-1.15.1/highs/mip/HighsPrimalHeuristics.cpp.orig 2026-07-02 00:42:37.000000000 -0600
-+++ HiGHS-1.15.1/highs/mip/HighsPrimalHeuristics.cpp 2026-07-04 10:06:20.519429409 -0600
+--- HiGHS-1.16.0/highs/mip/HighsPrimalHeuristics.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/mip/HighsPrimalHeuristics.cpp 2026-11-13 14:36:38.941044564 -0700
@@ -10,7 +10,7 @@
#include <numeric>
#include <unordered_set>
@@ -497,7 +557,7 @@
#include "io/HighsIO.h"
#include "lp_data/HConst.h"
#include "lp_data/HighsLpUtils.h"
-@@ -43,7 +43,7 @@ HighsPrimalHeuristics::HighsPrimalHeuris
+@@ -68,7 +68,7 @@ bool HighsPrimalHeuristics::subMipShould
void HighsPrimalHeuristics::setupIntCols() {
intcols = mipsolver.mipdata_->integer_cols;
@@ -506,7 +566,7 @@
const FP_32BIT_VOLATILE double lockScore1 =
(mipsolver.mipdata_->feastol + mipsolver.mipdata_->uplocks[c1]) *
(mipsolver.mipdata_->feastol + mipsolver.mipdata_->downlocks[c1]);
-@@ -317,7 +317,7 @@ void HighsPrimalHeuristics::rootReducedC
+@@ -342,7 +342,7 @@ void HighsPrimalHeuristics::rootReducedC
mipsolver, worker.getGlobalDomain());
if (10 * lurkingBounds.size() < mipsolver.mipdata_->integral_cols.size())
return;
@@ -515,7 +575,7 @@
[](const std::pair<double, HighsDomainChange>& a,
const std::pair<double, HighsDomainChange>& b) {
return a.first > b.first;
-@@ -533,7 +533,7 @@ retry:
+@@ -560,7 +560,7 @@ retry:
return fixval;
};
@@ -524,7 +584,7 @@
heurlp.getFractionalIntegers().end(),
[&](const std::pair<HighsInt, double>& a,
const std::pair<HighsInt, double>& b) {
-@@ -844,7 +844,7 @@ retry:
+@@ -853,7 +853,7 @@ retry:
// now sort the variables by their distance towards the value they will be
// fixed to
@@ -533,8 +593,8 @@
[&](const std::pair<HighsInt, double>& a,
const std::pair<HighsInt, double>& b) {
return std::make_pair(
---- HiGHS-1.15.1/highs/mip/HighsTableauSeparator.cpp.orig 2026-07-02 00:42:37.000000000 -0600
-+++ HiGHS-1.15.1/highs/mip/HighsTableauSeparator.cpp 2026-07-04 10:06:20.519669838 -0600
+--- HiGHS-1.16.0/highs/mip/HighsTableauSeparator.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/mip/HighsTableauSeparator.cpp 2026-11-13 14:36:38.941384748 -0700
@@ -12,7 +12,7 @@
#include <algorithm>
@@ -571,8 +631,28 @@
double bestScore = -1.0;
HighsInt numCuts = cutpool.getNumCuts();
---- HiGHS-1.15.1/highs/presolve/HighsSymmetry.cpp.orig 2026-07-02 00:42:37.000000000 -0600
-+++ HiGHS-1.15.1/highs/presolve/HighsSymmetry.cpp 2026-07-04 10:06:20.519881823 -0600
+--- HiGHS-1.16.0/highs/presolve/HighsPostsolveStack.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/presolve/HighsPostsolveStack.cpp 2026-11-13 14:59:23.705118282 -0700
+@@ -9,7 +9,7 @@
+
+ #include <numeric>
+
+-#include "../extern/pdqsort/pdqsort.h"
++#include <boost/sort/pdqsort/pdqsort.hpp>
+ #include "lp_data/HConst.h"
+ #include "lp_data/HighsModelUtils.h" // For debugging #2001
+ #include "lp_data/HighsOptions.h"
+@@ -1650,7 +1650,7 @@ void HighsPostsolveStack::undoFourierMot
+ step.minusRows[m].entries, m, true, candidates);
+ }
+ // sort descending by non-basic support count
+- pdqsort(candidates.begin(), candidates.end(),
++ boost::sort::pdqsort(candidates.begin(), candidates.end(),
+ [](const std::tuple<HighsInt, HighsInt, bool>& a,
+ const std::tuple<HighsInt, HighsInt, bool>& b) {
+ return std::get<0>(a) > std::get<0>(b);
+--- HiGHS-1.16.0/highs/presolve/HighsSymmetry.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/presolve/HighsSymmetry.cpp 2026-11-13 14:36:38.941635796 -0700
@@ -15,7 +15,7 @@
#include <algorithm>
#include <numeric>
@@ -582,7 +662,7 @@
#include "mip/HighsCliqueTable.h"
#include "mip/HighsDomain.h"
#include "parallel/HighsParallel.h"
-@@ -240,10 +240,10 @@ HighsSymmetries::computeStabilizerOrbits
+@@ -241,10 +241,10 @@ HighsSymmetries::computeStabilizerOrbits
stabilizerOrbits.orbitCols.push_back(permutationColumns[i]);
}
stabilizerOrbits.symmetries = this;
@@ -595,7 +675,7 @@
stabilizerOrbits.orbitCols.end(),
[&](HighsInt col1, HighsInt col2) {
return getOrbit(col1, workspace.orbitPartition,
-@@ -755,7 +755,7 @@ HighsInt HighsOrbitopeMatrix::orbitalFix
+@@ -676,7 +676,7 @@ HighsInt HighsOrbitopeMatrix::orbitalFix
void HighsSymmetryDetection::initializeGroundSet() {
vertexGroundSet = currentPartition;
@@ -604,7 +684,7 @@
vertexPosition.resize(vertexToCell.size(), -1);
for (HighsInt i = 0; i < numVertices; ++i)
vertexPosition[vertexGroundSet[i]] = i;
-@@ -926,7 +926,7 @@ bool HighsSymmetryDetection::partitionRe
+@@ -861,7 +861,7 @@ bool HighsSymmetryDetection::partitionRe
if (refineStart == cellEnd) continue;
// sort the vertices that have updated hash values by their hash values
@@ -613,7 +693,7 @@
currentPartition.begin() + cellEnd, [&](HighsInt v1, HighsInt v2) {
return vertexHash[v1] < vertexHash[v2];
});
-@@ -1282,7 +1282,7 @@ void HighsSymmetryDetection::loadModelAs
+@@ -1222,7 +1222,7 @@ void HighsSymmetryDetection::loadModelAs
// assigned above
currentPartition.resize(numVertices);
std::iota(currentPartition.begin(), currentPartition.end(), 0);
@@ -622,7 +702,7 @@
[&](HighsInt v1, HighsInt v2) {
return vertexToCell[v1] < vertexToCell[v2];
});
-@@ -1443,7 +1443,7 @@ HighsSymmetryDetection::computeComponent
+@@ -1383,7 +1383,7 @@ HighsSymmetryDetection::computeComponent
componentData.componentSets.assign(vertexGroundSet.begin(),
vertexGroundSet.begin() + numActiveCols);
@@ -631,7 +711,7 @@
componentData.componentSets.end(), [&](HighsInt u, HighsInt v) {
HighsInt uComp = componentData.components.getSet(vertexPosition[u]);
HighsInt vComp = componentData.components.getSet(vertexPosition[v]);
-@@ -1481,7 +1481,7 @@ HighsSymmetryDetection::computeComponent
+@@ -1421,7 +1421,7 @@ HighsSymmetryDetection::computeComponent
componentData.permComponents.push_back(i);
}
@@ -640,36 +720,67 @@
componentData.permComponents.end(), [&](HighsInt i, HighsInt j) {
HighsInt seti =
componentData.components.getSet(componentData.firstUnfixed[i]);
---- HiGHS-1.15.1/highs/presolve/HPresolve.cpp.orig 2026-07-02 00:42:37.000000000 -0600
-+++ HiGHS-1.15.1/highs/presolve/HPresolve.cpp 2026-07-04 10:20:50.713026544 -0600
-@@ -12,7 +12,7 @@
- #include <cmath>
- #include <limits>
-
+--- HiGHS-1.16.0/highs/presolve/HPresolveAggregator.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/presolve/HPresolveAggregator.cpp 2026-11-13 14:50:18.111406913 -0700
+@@ -5,7 +5,7 @@
+ /* Available as open-source under the MIT License */
+ /* */
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-#include "../extern/pdqsort/pdqsort.h"
+#include <boost/sort/pdqsort/pdqsort.hpp>
- #include "Highs.h"
- #include "io/HighsIO.h"
- #include "lp_data/HConst.h"
-@@ -1633,7 +1633,7 @@ HPresolve::Result HPresolve::runProbing(
- }
- if (!binaries.empty()) {
- // sort variables with many implications on other binaries first
-- pdqsort(binaries.begin(), binaries.end());
-+ boost::sort::pdqsort(binaries.begin(), binaries.end());
+ #include "presolve/HPresolve.h"
+ #include "presolve/HPresolveUtils.h"
- size_t numChangedCols = 0;
- while (domain.getChangedCols().size() != numChangedCols) {
-@@ -2006,7 +2006,7 @@ HPresolve::Result HPresolve::liftingForP
- };
+@@ -26,7 +26,7 @@ HPresolve::Result HPresolve::aggregator(
+ }),
+ substitutionOpportunities.end());
- // sort according to score
- pdqsort(
+ boost::sort::pdqsort(
- liftingtable.begin(), liftingtable.end(),
- [&](const liftingdata& opp1, const liftingdata& opp2) {
- double score1 = computeOverallScore(
-@@ -5005,7 +5005,7 @@ HPresolve::Result HPresolve::singletonCo
+ substitutionOpportunities.begin(), substitutionOpportunities.end(),
+ [&](const std::pair<HighsInt, HighsInt>& nz1,
+ const std::pair<HighsInt, HighsInt>& nz2) {
+--- HiGHS-1.16.0/highs/presolve/HPresolveCliqueTable.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/presolve/HPresolveCliqueTable.cpp 2026-11-13 16:30:41.430962163 -0700
+@@ -10,7 +10,7 @@
+ #include <algorithm>
+ #include <cassert>
+
+-#include "../extern/pdqsort/pdqsort.h"
++#include <boost/sort/pdqsort/pdqsort.hpp>
+
+ using CliqueVar = HighsCliqueTable::CliqueVar;
+ using Clique = HighsCliqueTable::Clique;
+@@ -158,7 +158,7 @@ void HPresolveCliqueTable::eliminateCol(
+ [&](const HighsInt cliqueId) { incidentCliques.push_back(cliqueId); });
+ table->invertedHashListSizeTwo[2 * col + 1].clear();
+
+- pdqsort(incidentCliques.begin(), incidentCliques.end());
++ boost::sort::pdqsort(incidentCliques.begin(), incidentCliques.end());
+
+ for (const HighsInt cliqueId : incidentCliques) {
+ Clique& clique = table->cliques[cliqueId];
+@@ -230,7 +230,7 @@ bool HPresolveCliqueTable::substituteCol
+ };
+ collectOverlaps(CliqueVar(substCol, 0));
+ collectOverlaps(CliqueVar(substCol, 1));
+- pdqsort(overlaps.begin(), overlaps.end(),
++ boost::sort::pdqsort(overlaps.begin(), overlaps.end(),
+ [](const Overlap& a, const Overlap& b) {
+ return a.cliqueId < b.cliqueId;
+ });
+--- HiGHS-1.16.0/highs/presolve/HPresolveColStuffing.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/presolve/HPresolveColStuffing.cpp 2026-11-13 16:30:11.159475046 -0700
+@@ -5,7 +5,7 @@
+ /* Available as open-source under the MIT License */
+ /* */
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
+-#include "../extern/pdqsort/pdqsort.h"
++#include <boost/sort/pdqsort/pdqsort.hpp>
+ #include "presolve/HPresolve.h"
+ #include "presolve/HPresolveUtils.h"
+
+@@ -32,7 +32,7 @@ HPresolve::Result HPresolve::singletonCo
};
auto sortCols = [&](std::vector<candidate>& vec) {
@@ -678,7 +789,29 @@
[&](const candidate& c1, const candidate& c2) {
return model->col_cost_[c1.col] / c1.val <
model->col_cost_[c2.col] / c2.val;
-@@ -5265,7 +5265,7 @@ HPresolve::Result HPresolve::enumerateSo
+--- HiGHS-1.16.0/highs/presolve/HPresolve.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/presolve/HPresolve.cpp 2026-11-13 14:36:38.942501860 -0700
+@@ -12,7 +12,7 @@
+ #include <cmath>
+ #include <limits>
+
+-#include "../extern/pdqsort/pdqsort.h"
++#include <boost/sort/pdqsort/pdqsort.hpp>
+ #include "Highs.h"
+ #include "io/HighsIO.h"
+ #include "lp_data/HConst.h"
+--- HiGHS-1.16.0/highs/presolve/HPresolveEnumeration.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/presolve/HPresolveEnumeration.cpp 2026-11-13 14:55:59.931498862 -0700
+@@ -5,7 +5,7 @@
+ /* Available as open-source under the MIT License */
+ /* */
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
+-#include "../extern/pdqsort/pdqsort.h"
++#include <boost/sort/pdqsort/pdqsort.hpp>
+ #include "mip/HighsMipSolverData.h"
+ #include "mip/MipTimer.h"
+ #include "presolve/HPresolve.h"
+@@ -76,7 +76,7 @@ HPresolve::Result HPresolve::enumerateSo
binvars[numnzs++] = col;
}
if (numnzs == 0) return false;
@@ -687,7 +820,7 @@
return true;
};
-@@ -5394,7 +5394,7 @@ HPresolve::Result HPresolve::enumerateSo
+@@ -230,7 +230,7 @@ HPresolve::Result HPresolve::enumerateSo
// compile rows and sort them
compileRows(rows);
@@ -696,17 +829,108 @@
// remove similar rows
removeSimilarRows(rows);
-@@ -6700,7 +6700,7 @@ HPresolve::Result HPresolve::aggregator(
- }),
- substitutionOpportunities.end());
+--- HiGHS-1.16.0/highs/presolve/HPresolveFourierMotzkin.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/presolve/HPresolveFourierMotzkin.cpp 2026-11-13 14:56:30.011299217 -0700
+@@ -5,7 +5,7 @@
+ /* Available as open-source under the MIT License */
+ /* */
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
+-#include "../extern/pdqsort/pdqsort.h"
++#include <boost/sort/pdqsort/pdqsort.hpp>
+ #include "presolve/HPresolve.h"
+ #include "presolve/HPresolveUtils.h"
+
+@@ -178,7 +178,7 @@ HPresolve::Result HPresolve::fourierMotz
+ candidates.clear();
+ for (HighsInt col = 0; col < model->num_col_; col++)
+ if (isCandidate(col)) candidates.push_back(col);
+- pdqsort(candidates.begin(), candidates.end(),
++ boost::sort::pdqsort(candidates.begin(), candidates.end(),
+ [&](HighsInt a, HighsInt b) { return colsize[a] < colsize[b]; });
+ return !candidates.empty();
+ };
+--- HiGHS-1.16.0/highs/presolve/HPresolveParallelRowsAndCols.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/presolve/HPresolveParallelRowsAndCols.cpp 2026-11-13 14:56:57.209973689 -0700
+@@ -5,7 +5,7 @@
+ /* Available as open-source under the MIT License */
+ /* */
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
+-#include "../extern/pdqsort/pdqsort.h"
++#include <boost/sort/pdqsort/pdqsort.hpp>
+ #include "mip/HighsMipSolverData.h"
+ #include "presolve/HPresolve.h"
+ #include "presolve/HPresolveUtils.h"
+@@ -478,7 +478,7 @@ HPresolve::Result HPresolve::detectParal
+ // constraint to be lost when moveCutsToPool removes it.
+ std::vector<HighsInt> rowOrder(model->num_row_);
+ std::iota(rowOrder.begin(), rowOrder.end(), 0);
+- pdqsort(rowOrder.begin(), rowOrder.end(), [&](HighsInt a, HighsInt b) {
++ boost::sort::pdqsort(rowOrder.begin(), rowOrder.end(), [&](HighsInt a, HighsInt b) {
+ if (postsolve_stack.isCutRow(a) != postsolve_stack.isCutRow(b))
+ return !postsolve_stack.isCutRow(a);
+ return a < b;
+--- HiGHS-1.16.0/highs/presolve/HPresolveProbing.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/presolve/HPresolveProbing.cpp 2026-11-13 14:57:38.226387492 -0700
+@@ -5,7 +5,7 @@
+ /* Available as open-source under the MIT License */
+ /* */
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
+-#include "../extern/pdqsort/pdqsort.h"
++#include <boost/sort/pdqsort/pdqsort.hpp>
+ #include "mip/HighsMipSolverData.h"
+ #include "mip/MipTimer.h"
+ #include "presolve/HPresolve.h"
+@@ -57,7 +57,7 @@ HPresolve::Result HPresolve::runProbing(
+ }
+ if (!binaries.empty()) {
+ // sort variables with many implications on other binaries first
+- pdqsort(binaries.begin(), binaries.end());
++ boost::sort::pdqsort(binaries.begin(), binaries.end());
+
+ size_t numChangedCols = 0;
+ while (domain.getChangedCols().size() != numChangedCols) {
+@@ -437,7 +437,7 @@ HPresolve::Result HPresolve::liftingForP
+ };
+ // sort according to score
- pdqsort(
+ boost::sort::pdqsort(
- substitutionOpportunities.begin(), substitutionOpportunities.end(),
- [&](const std::pair<HighsInt, HighsInt>& nz1,
- const std::pair<HighsInt, HighsInt>& nz2) {
-@@ -7150,7 +7150,7 @@ HPresolve::Result HPresolve::strengthenI
- if (maxviolation - continuouscontribution <= smallVal || indices.empty())
+ liftingtable.begin(), liftingtable.end(),
+ [&](const liftingdata& opp1, const liftingdata& opp2) {
+ double score1 = computeOverallScore(
+--- HiGHS-1.16.0/highs/presolve/HPresolveProbingUtil.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/presolve/HPresolveProbingUtil.cpp 2026-11-13 16:34:40.228787454 -0700
+@@ -5,7 +5,7 @@
+ /* Available as open-source under the MIT License */
+ /* */
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
+-#include "../extern/pdqsort/pdqsort.h"
++#include <boost/sort/pdqsort/pdqsort.hpp>
+ #include "mip/HighsMipSolverData.h"
+ #include "presolve/HPresolve.h"
+ #include "presolve/HPresolveUtils.h"
+@@ -120,7 +120,7 @@ HPresolve::Result HPresolve::normaliseCl
+ HighsInt numBin = static_cast<HighsInt>(nzs.size());
+ perm.resize(numBin);
+ std::iota(perm.begin(), perm.end(), 0);
+- pdqsort(perm.begin(), perm.end(), [&](HighsInt a, HighsInt b) {
++ boost::sort::pdqsort(perm.begin(), perm.end(), [&](HighsInt a, HighsInt b) {
+ return nzs[a].value > nzs[b].value;
+ });
+
+--- HiGHS-1.16.0/highs/presolve/HPresolveStrengthenIneq.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/presolve/HPresolveStrengthenIneq.cpp 2026-11-13 14:58:51.849879893 -0700
+@@ -5,7 +5,7 @@
+ /* Available as open-source under the MIT License */
+ /* */
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
+-#include "../extern/pdqsort/pdqsort.h"
++#include <boost/sort/pdqsort/pdqsort.hpp>
+ #include "presolve/HPresolve.h"
+ #include "presolve/HPresolveUtils.h"
+
+@@ -152,7 +152,7 @@ HPresolve::Result HPresolve::strengthenI
+ indices.empty())
break;
- pdqsort(indices.begin(), indices.end(), [&](HighsInt i1, HighsInt i2) {
@@ -714,8 +938,8 @@
return std::make_pair(reducedcost[i1], i1) >
std::make_pair(reducedcost[i2], i2);
});
---- HiGHS-1.15.1/highs/simplex/HEkkDualRHS.cpp.orig 2026-07-02 00:42:37.000000000 -0600
-+++ HiGHS-1.15.1/highs/simplex/HEkkDualRHS.cpp 2026-07-04 10:06:20.521268326 -0600
+--- HiGHS-1.16.0/highs/simplex/HEkkDualRHS.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/simplex/HEkkDualRHS.cpp 2026-11-13 14:36:38.943021238 -0700
@@ -15,7 +15,7 @@
#include <iostream>
#include <set>
@@ -752,8 +976,8 @@
if ((HighsInt)(setP.size()) > chLimit) setP.resize(chLimit);
*chCount = static_cast<HighsInt>(setP.size());
for (size_t i = 0; i < setP.size(); i++) chIndex[i] = setP[i].second;
---- HiGHS-1.15.1/highs/simplex/HEkkDualRow.cpp.orig 2026-07-02 00:42:37.000000000 -0600
-+++ HiGHS-1.15.1/highs/simplex/HEkkDualRow.cpp 2026-07-04 10:06:20.521452269 -0600
+--- HiGHS-1.16.0/highs/simplex/HEkkDualRow.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/simplex/HEkkDualRow.cpp 2026-11-13 14:36:38.943311599 -0700
@@ -13,7 +13,7 @@
#include <cassert>
#include <iostream>
@@ -772,8 +996,8 @@
analysis->simplexTimerStop(Chuzc4eClock);
analysis->simplexTimerStop(Chuzc4Clock);
---- HiGHS-1.15.1/highs/simplex/HEkkPrimal.cpp.orig 2026-07-02 00:42:37.000000000 -0600
-+++ HiGHS-1.15.1/highs/simplex/HEkkPrimal.cpp 2026-07-04 10:06:20.521699580 -0600
+--- HiGHS-1.16.0/highs/simplex/HEkkPrimal.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/simplex/HEkkPrimal.cpp 2026-11-13 14:36:38.943581733 -0700
@@ -10,7 +10,7 @@
*/
#include "simplex/HEkkPrimal.h"
@@ -801,8 +1025,8 @@
double dMaxAlpha = 0.0;
size_t iLast = ph1SorterT.size();
for (size_t i = 0; i < ph1SorterT.size(); i++) {
---- HiGHS-1.15.1/highs/simplex/HSimplexNla.cpp.orig 2026-07-02 00:42:37.000000000 -0600
-+++ HiGHS-1.15.1/highs/simplex/HSimplexNla.cpp 2026-07-04 10:06:20.521969643 -0600
+--- HiGHS-1.16.0/highs/simplex/HSimplexNla.cpp.orig 2026-11-11 07:54:39.000000000 -0700
++++ HiGHS-1.16.0/highs/simplex/HSimplexNla.cpp 2026-11-13 14:36:38.943901268 -0700
@@ -14,7 +14,7 @@
#include <stdio.h>
@@ -830,8 +1054,8 @@
for (HighsInt en = 0; en < vector->packCount; en++) {
HighsInt iRow = sorted_index[en];
if (en % 5 == 0) printf("\n");
---- HiGHS-1.15.1/highs/util/HFactor.cpp.orig 2026-09-21 11:38:29.540001777 -0600
-+++ HiGHS-1.15.1/highs/util/HFactor.cpp 2026-09-21 11:38:39.980341326 -0600
+--- HiGHS-1.16.0/highs/util/HFactor.cpp.orig 2026-11-29 20:50:21.641710982 -0700
++++ HiGHS-1.16.0/highs/util/HFactor.cpp 2026-11-29 20:50:30.026644746 -0700
@@ -13,7 +13,7 @@
#include <cassert>
#include <iostream>
@@ -841,7 +1065,7 @@
#include "lp_data/HConst.h"
#include "util/FactorTimer.h"
#include "util/HFactorDebug.h"
-@@ -2194,7 +2194,7 @@ void HFactor::updateCFT(HVector* aq, HVe
+@@ -2309,7 +2309,7 @@ void HFactor::updateCFT(HVector* aq, HVe
// 8. Update the sorted ep
sorted_pp.push_back(make_pair(p_logic[cp], cp));
diff --git a/coin-or-HiGHS.spec b/coin-or-HiGHS.spec
index ea9d4b1..178d77c 100644
--- a/coin-or-HiGHS.spec
+++ b/coin-or-HiGHS.spec
@@ -4,13 +4,20 @@
# Whether to run tests
%bcond ctest 1
+# Whether to build with AMD GPU support. This is off by default because:
+# (1) HiPDLP cannot run in CPU mode if it has been built in ROCm mode, meaning
+# that users without an AMD GPU would not be able to use HiPDLP.
+# (2) Using the GPU works well only for large LPs. For small LPs, the cost of
+# launching GPU kernels exceeds the speed benefits.
+%bcond rocm 0
+
# The build runs git to get a commit, but we don't have a git checkout
%global commit 04024d701
%global giturl https://github.com/ERGO-Code/HiGHS
Name: coin-or-HiGHS
-Version: 1.15.1
+Version: 1.16.0
Release: %autorelease
Summary: Linear optimization software
@@ -40,6 +47,9 @@ BuildOption(conf): -DHIPO:BOOL=ON
BuildOption(conf): -DALL_TESTS:BOOL=ON
BuildOption(conf): -DBUILD_TESTING:BOOL=ON
%endif
+%if %{with rocm}
+BuildOption(conf): -DHIPDLP_HIP:BOOL=ON
+%endif
BuildRequires: boost-devel
BuildRequires: catch2-devel
@@ -53,10 +63,13 @@ BuildRequires: pkgconfig(flexiblas)
BuildRequires: python3-devel
BuildRequires: zstr-static
-# A bundled version of FilereaderLP is included, but it has been modified
-# extensively from the upstream version:
-# https://github.com/feldmeier/FilereaderLP/
-Provides: bundled(FilereaderLP)
+%if %{with rocm}
+BuildRequires: cmake(hip)
+BuildRequires: cmake(hipblas)
+BuildRequires: cmake(hipsparse)
+BuildRequires: hipcc
+BuildRequires: rocm-lld
+%endif
# A bundled version of rcm is included, but it has been modified from the
# upstream version. It has been extracted from sparsepak:
@@ -123,6 +136,12 @@ rm -fr extern/{cli11,pdqsort,zstr}
%generate_buildrequires
%pyproject_buildrequires -x test
+%if %{with rocm}
+%conf -a
+# Workaround for broken system include path order
+sed -i '/offload-arch/s/isystem/idirafter/' %{_vpath_builddir}/build.ninja
+%endif
+
%build -a
# Build the python interface
%pyproject_wheel
@@ -151,6 +170,12 @@ g++ %{build_cxxflags} -fPIC -shared -I ../highs -I ../%{_vpath_builddir} \
%{build_ldflags} -L %{buildroot}%{_libdir} -lhighs
cd -
+%if %{with rocm}
+# Skip tests that fail with a ROCm build
+%check
+%ctest -E 'cxx_examples_call_highs_hipdlp|unit_tests_all'
+%endif
+
%check -a
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
%pytest -v
@@ -160,6 +185,7 @@ export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
%license LICENSE.txt THIRD_PARTY_NOTICES.md
%{_bindir}/highs
%{_libdir}/libhighs.so.1{,.*}
+%{_libdir}/libhighs_extras.so
%{_mandir}/man1/highs.1*
%files devel
diff --git a/sources b/sources
index e2895aa..6c5e2ee 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (HiGHS-1.15.1.tar.gz) = 0ea407784bc6c8e31c72fbcdcab201e8a7cc7debbca57504e74177658208151e90637e5fb1e0cdf1b1ae6b677e7865e77771ec025b17f8223f74d00fc6420546
+SHA512 (HiGHS-1.16.0.tar.gz) = 4780fd4338e144b5639f00bffed4075ee7260479d904270c704c8220a6e2f0379a7ff167ba6a64587f897b86b99e24d5dea7b6817decfd8534fc832e2c925fa4
reply other threads:[~2026-11-30 18:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179606343884.1.7717981063459430365.rpms-coin-or-HiGHS-ba79e1ef7a06@fedoraproject.org \
--to=loganjerry@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox