Unknown status FAILURE
ForceBru opened this issue · 0 comments
ForceBru commented
I'm optimizing some function with JuMP + NLopt, but sometimes when I call value.(model[:my_variable])
, I get this error:
Unknown status FAILURE
error(::String)@error.jl:33
get@MOI_wrapper.jl:1038[inlined]
get(::MathOptInterface.Bridges.LazyBridgeOptimizer{NLopt.Optimizer}, ::MathOptInterface.TerminationStatus)@bridge_optimizer.jl:719
get(::MathOptInterface.Utilities.CachingOptimizer{MathOptInterface.AbstractOptimizer, MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}}, ::MathOptInterface.TerminationStatus)@cachingoptimizer.jl:706
_moi_get_result(::MathOptInterface.Utilities.CachingOptimizer{MathOptInterface.AbstractOptimizer, MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}}, ::MathOptInterface.VariablePrimal, ::Vararg{Any, N} where N)@JuMP.jl:1080
get(::JuMP.Model, ::MathOptInterface.VariablePrimal, ::JuMP.VariableRef)@JuMP.jl:1116
var"#value#28"(::Int64, ::typeof(JuMP.value), ::JuMP.VariableRef)@variables.jl:916
value@variables.jl:916[inlined]
_broadcast_getindex_evalf@broadcast.jl:648[inlined]
_broadcast_getindex@broadcast.jl:621[inlined]
getindex@broadcast.jl:575[inlined]
macro expansion@broadcast.jl:984[inlined]
macro expansion@simdloop.jl:77[inlined]
copyto!@broadcast.jl:983[inlined]
copyto!@broadcast.jl:936[inlined]
copy@broadcast.jl:908[inlined]
materialize@broadcast.jl:883[inlined]
broadcast(::typeof(JuMP.value), ::Vector{JuMP.VariableRef})@broadcast.jl:821
broadcasted(::JuMP.Containers.DenseAxisArrayBroadcastStyle, ::Function, ::JuMP.Containers.DenseAxisArray{JuMP.VariableRef, 1, Tuple{Base.OneTo{UInt64}}, Tuple{Dict{UInt64, Int64}}})@DenseAxisArray.jl:282
broadcasted(::Function, ::JuMP.Containers.DenseAxisArray{JuMP.VariableRef, 1, Tuple{Base.OneTo{UInt64}}, Tuple{Dict{UInt64, Int64}}})@broadcast.jl:1309
next(::Main.workspace341.MyModel{Float64})@Other: 24
iterate@Other: 13[inlined]
iterate(::Base.Iterators.Enumerate{Main.workspace341.MyModel{Float64}}, ::Tuple{Int64, Nothing})@iterators.jl:159
top-level scope@Local: 18[inlined]
Looks like MathOptInterface doesn't understand what FAILURE
means?
Versions
- Julia 1.6.0-rc3
- JuMP v0.21.6
https://github.com/jump-dev/JuMP.jl.git#master
- NLopt v0.6.2