jump-dev / HiGHS.jl

A Julia interface to the HiGHS solver
https://highs.dev
MIT License
96 stars 13 forks source link

HiGHS zlib support #199

Closed mlubin closed 5 months ago

mlubin commented 5 months ago

I'm using Julia 1.10.0 and HiGHS.jl 1.8.0 on linux. When I try writing a JuMP model to an MPS file, I get:

Running HiGHS 1.6.0: Copyright (c) 2023 HiGHS under MIT licence terms
model built
ERROR:   HiGHS build without zlib support. Cannot read .gz file.

The API call looks like:

HiGHS.Highs_writeModel(JuMP.backend(model), "test.mps.gz")

where model is a JuMP model in direct mode.

odow commented 5 months ago

Hmm. What is versioninfo()? It worked writing the .mps.gz on macOS.

odow commented 5 months ago

Don't worry. From the builds of https://github.com/JuliaPackaging/Yggdrasil/pull/7453 I see

linux

image

macOS

image

There's the culprit.

odow commented 5 months ago

Trying a build with an explicit zlib: https://github.com/JuliaPackaging/Yggdrasil/pull/8071

odow commented 5 months ago

Will be closed by https://github.com/JuliaRegistries/General/pull/100430

odow commented 5 months ago

I'll add a test before closing this

odow commented 5 months ago

An update should resolve this. You need HiGHS_jll@1.6.0+1.