Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option "qp_iteration_limit" is unknown #231

Closed
sstroemer opened this issue Oct 10, 2024 · 3 comments
Closed

Option "qp_iteration_limit" is unknown #231

sstroemer opened this issue Oct 10, 2024 · 3 comments

Comments

@sstroemer
Copy link

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
Copy link
Author

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

@odow
Copy link
Member

odow commented Oct 11, 2024

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
Copy link
Member

odow commented Oct 11, 2024

Closing in favor of ERGO-Code/HiGHS#1967

@odow odow closed this as completed Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants