jump-dev / HiGHS.jl

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

`Highs_resetGlobalScheduler` not defined #209

Closed jd-lara closed 6 months ago

jd-lara commented 6 months ago

MWE

using JuMP, HiGHS
model = Model(HiGHS.Optimizer)
Highs_resetGlobalScheduler(1)
set_attribute(model, MOI.NumberOfThreads(), 1)
odow commented 6 months ago

You must have an old version of HiGHS:

https://github.com/jump-dev/HiGHS.jl/blob/1d192e20410b2e71c7cf1eaab48d3e533f3f8902/src/gen/libhighs.jl#L2244-L2262

odow commented 6 months ago

Closing because @jd-lara is using an old version of HiGHS that doesn't include this, and the version he is using is not thread-safe.