When I called Gurobi (v1.1.0) with the following code,
m_cvx = Model(optimizer_with_attributes(Gurobi.Optimizer,GRB_ENV,“OutputFlag”=>0))
it fails with methoderror.
MethodError: no method matching optimizer_with_attributes(::Type{Gurobi.Optimizer}, ::Gurobi.Env, ::Pair{String, Int64})
Closest candidates are:
optimizer_with_attributes(::Any, !Matched::Pair...)
@ JuMP C:\Users\MNRG\.julia\packages\JuMP\D44Aq\src\optimizer_interface.jl:47
Stacktrace:
[1] cvxrs(network_data::Dict{String, Any}, option::String, target_network_data::Nothing)
@ Main C:\Users\MNRG\Desktop\PowerFlowCVXRS-master\src\main.jl:405
[2] scrs(network_data::Dict{String, Any}, max_iter_SCRS::Int64)
@ Main C:\Users\MNRG\Desktop\PowerFlowCVXRS-master\src\main.jl:806
[3] top-level scope
@ C:\Users\MNRG\Desktop\PowerFlowCVXRS-master\example.jl:19
How should I call Gurobi solver?