Thanks for the reply. The error that I have received is
LoadError: MethodError: no method matching setsolver(::JuMP.Model, ::SeDuMi.Optimizer)
Closest candidates are:
setsolver(::JuMP.Model, !Matched::MathProgBase.SolverInterface.AbstractMathProgSolver) at C:\Users\Abd-PC.juliapro\JuliaPro_v1.0.3.1\packages\JuMP\I7whV\src\JuMP.jl:271
in expression starting at C:\Users\Abd-PC\Desktop\testing PowerModels\testing_PowerModels_2:14
setsolver(::GenericPowerModel{SDPWRMForm}, ::SeDuMi.Optimizer) at base.jl:168
#solve_generic_model#141(::Function, ::Function, ::GenericPowerModel{SDPWRMForm}, ::SeDuMi.Optimizer) at base.jl:228
(::getfield(PowerModels, Symbol(“#kw##solve_generic_model”)))(::NamedTuple{(:solution_builder,),Tuple{typeof(PowerModels.get_solution)}}, ::typeof(solve_generic_model), ::GenericPowerModel{SDPWRMForm}, ::SeDuMi.Optimizer) at none:0
#run_generic_model#138(::Function, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Dict{String,Any}, ::Type, ::SeDuMi.Optimizer, ::Function) at base.jl:195
run_generic_model(::Dict{String,Any}, ::Type, ::SeDuMi.Optimizer, ::Function) at base.jl:191
#run_generic_model#137(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::String, ::Type, ::SeDuMi.Optimizer, ::Function) at base.jl:186
run_generic_model(::String, ::Type, ::SeDuMi.Optimizer, ::Function) at base.jl:185
#run_opf#618(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::String, ::Type, ::SeDuMi.Optimizer) at opf.jl:15
run_opf(::String, ::Type, ::SeDuMi.Optimizer) at opf.jl:15
top-level scope at none:0