Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Mar 29, 2024
1 parent 38315a4 commit 916bb92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MOI/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ function MOI.supports(model::Optimizer, attr::MOI.RawOptimizerAttribute)
end
p_id, p_type = Ref{Cint}(), Ref{Cint}()
ret = Lib.XPRSgetcontrolinfo(model.inner, attr.name, p_id, p_type)
if ret != 0
if ret != 0 || p_type[] == Lib.XPRS_TYPE_NOTDEFINED
ret = Lib.XPRSgetattribinfo(model.inner, attr.name, p_id, p_type)
end
p_type_fail = p_type[] in (Lib.XPRS_TYPE_NOTDEFINED, Lib.XPRS_TYPE_INT64)
Expand Down

0 comments on commit 916bb92

Please sign in to comment.