Can anyone else reproduce the below? The following function just hangs the julia REPL.
I’m using 1.11.0-rc3 on Windows 11.
import Hypatia
import SCS
import COSMO
using JuMP
function getjumpmodel(optimizer_name::String)
@info "Using optimizer $optimizer_name"
# create JuMP model
if optimizer_name == "SCS"
return JuMP.Model(SCS.Optimizer)
elseif optimizer_name == "COSMO"
return JuMP.Model(COSMO.Optimizer)
elseif optimizer_name == "Hypatia"
return JuMP.Model(Hypatia.Optimizer)
elseif optimizer_name == "Mosek"
@error "Can't use Mosek with JuMP since it does not support adding and removing constraints with JuMP.jl currently"
# model = JuMP.Model(Mosek.Optimizer)
end
# defaults to SCS
return JuMP.Model(SCS.Optimizer)
end
julia> getjumpmodel("SCS")
# returns nothing REPL just hangs here