Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

155.6. highs-1.15.1

Linear and mixed-integer programming solver

1.15.1-1 · MIT · 3.3 SBU · 9.0 MiB, 296 files · 41_system, 741 of 1047 · ports/core/math/highs

Homepage: https://highs.dev/

Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/math.txt:

glpk is a decade behind on mixed-integer problems; HiGHS is the one an open toolchain can put against a commercial solver.

Depends on: cmake, ninja, zlib, openblas.

Required by: no port names it.

Sources: highs-1.15.1.tar.gz (2.9 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install highs'

build.sh:

mkdir -p build && cd build
cmake .. -G Ninja -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib \
	-DBUILD_SHARED_LIBS=ON -DFAST_BUILD=ON \
	-DZLIB=ON -DHIPO=ON -DBUILD_OPENBLAS=OFF \
	-DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF \
	-DFORTRAN=OFF
ninja
DESTDIR=$PKG ninja install
install -Dm755 lib/libhighs_extras.so $PKG/usr/lib/libhighs_extras.so

Programs: highs.

Libraries: libhighs.so, libhighs_extras.so.

Directories: /usr/include/highs, /usr/lib/cmake/highs, /usr/share/doc/HIGHS, /usr/share/licenses/highs.