I am paralellizing, with the library Distributed (pmap method), calling the JuMP solver Ipopt across different agents (“utilities”). The results for each agent are then vertically concatenated into a DataFrame. The code runs well even for hours but then suddenly it breaks with the following error:
ERROR: LoadError: On worker 2:
MethodError: Cannot convert
an object of type
Symbol to an object of type
AbstractVector
Closest candidates are:
convert(::Type{T}, ::Factorization) where T<:AbstractArray at /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/LinearAlgebra/src/factorization.jl:58
convert(::Type{T}, ::T) where T<:AbstractArray at /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/base/abstractarray.jl:16
convert(::Type{T}, ::T) where T at /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/base/essentials.jl:218
Here is a screenshot of the code where the pmap happens on the last line of the screenshot.
Any help would be very much appreciated. Just for reference: utility_id is an Integer.