jump-dev / HiGHS.jl

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

Option "qp_iteration_limit" is unknown #231

Closed sstroemer closed 4 days ago

sstroemer commented 5 days ago

I'm using HiGHS.jl v1.9.3. I have a slight feeling the error could originate from HiGHS directly, but I'm unsure if this is just the wrong way to set QP solver parameters specifically (because I can set others, only this and qp_nullspace_limit seem to fail):

using JuMP
import HiGHS

m = Model(HiGHS.Optimizer)
set_attribute(m, "qp_iteration_limit", 1000)

fails with

ERROR:   getOptionIndex: Option "qp_iteration_limit" is unknown
ERROR: MathOptInterface.UnsupportedAttribute{MathOptInterface.RawOptimizerAttribute}: Attribute MathOptInterface.RawOptimizerAttribute("qp_iteration_limit") is not supported by the model.

Also

HiGHS.Highs_setIntOptionValue(unsafe_backend(m), "qp_iteration_limit", 1000)

prints

ERROR:   getOptionIndex: Option "qp_iteration_limit" is unknown
-1
sstroemer commented 5 days ago

(if this actually belongs to HiGHS, I can re-open it there if it can't be transferred)

odow commented 4 days ago

This does seem like an upstream bug:

julia> h = Highs_create()
Ptr{Nothing} @0x00007f8d5225d800

julia> typeP = Ref{Cint}(0)
Base.RefValue{Int32}(0)

julia> ret = Highs_getOptionType(h, "qp_iteration_limit", typeP)
ERROR:   getOptionIndex: Option "qp_iteration_limit" is unknown
-1
odow commented 4 days ago

Closing in favor of https://github.com/ERGO-Code/HiGHS/issues/1967