I tried to solve a very big optimization problem (MIQCP), and the error
MethodError: Cannot convert
an object of type Missing to an object of type Float64
Closest candidates are:
convert(::Type{T}, ::T) where T<:Number at number.jl:6
convert(::Type{T}, ::Number) where T<:Number at number.jl:7
convert(::Type{T}, ::Base.TwicePrecision) where T<:Number at twiceprecision.jl:250
appeared, how can I fix this?
Do you know where the Missing value arises?
Are you sure the problem is not that a missing value occurs in your computational flow? If not, Is there a specific Float64 value that you want to be the result of that conversion?
1 Like
Can you provide a reproducible example?
When I solve the smaller same problem, it works. Thus, I think it is related to the size of the objective value
Can you provide a reproducible example? It’s hard to offer advice without knowing the problem.