Skip to content

Commit

Permalink
Remove ProxAL contructor (#46)
Browse files Browse the repository at this point in the history
The constructor is implemented in ProxAL itself.
  • Loading branch information
michel2323 authored Apr 21, 2023
1 parent e17668d commit f0a7ada
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ExaAdmm"
uuid = "4d6a948c-1075-4240-a564-361a5d4e22a2"
authors = ["Youngdae Kim <[email protected]>", "Kibaek Kim <[email protected]>", "Weiqi Zhang <[email protected]>", "Bowen Li <[email protected]>", "François Pacaud <[email protected]>", "Michel Schanen <[email protected]>"]
version = "0.4.1"
version = "0.4.2"

[deps]
AMDGPU = "21141c5a-9bdb-4563-92ae-f87d6854732e"
Expand Down
23 changes: 0 additions & 23 deletions src/utils/environment.jl
Original file line number Diff line number Diff line change
Expand Up @@ -150,29 +150,6 @@ mutable struct AdmmEnv{T,TD,TI,TM} <: AbstractAdmmEnv{T,TD,TI,TM}
end
end

function ExaAdmm.AdmmEnv(opfdata, rho_va::Float64, rho_pq::Float64; use_gpu=false, ka_device=nothing, options...)
if use_gpu
if isa(ka_device, Nothing)
T = Float64
VT = CuVector{Float64}
VI = CuVector{Int}
MT = CuMatrix{Float64}
else
T = Float64
VT = typeof(KAArray{Float64}(undef, 0))
VI = typeof(KAArray{Int}(undef, 0))
MT = typeof(KAArray{Float64}(undef, 0, 0))
end
else
T = Float64
VT = Vector{Float64}
VI = Vector{Int}
MT = Matrix{Float64}
end
env = ExaAdmm.AdmmEnv{T,VT,VI,MT}(opfdata, "proxal", rho_pq, rho_va; use_gpu=use_gpu, ka_device=ka_device, options...)
return env
end

function AdmmEnv{T,TD,TI,TM}(
case::String, rho_pq::Float64, rho_va::Float64; case_format="matpower", verbose::Int=1, options...
) where {T, TD<:AbstractArray{T}, TI<:AbstractArray{Int}, TM<:AbstractArray{T,2}}
Expand Down

0 comments on commit f0a7ada

Please sign in to comment.