1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-11-14 14:15:28 +01:00

Allow for AbstractMathProfSolver in Settings

This commit is contained in:
kalmarek 2017-10-27 14:27:26 +02:00
parent bc2a827342
commit 6cbf5e6944

View File

@ -10,7 +10,7 @@ immutable Settings
S::Vector
AutS::Group
radius::Int
solver::SCSSolver
solver::AbstractMathProgSolver
upper_bound::Float64
tol::Float64
end
@ -166,8 +166,10 @@ function init_model(Uπs)
for k in 1:l
s = size(Uπs[k],2)
P[k] = JuMP.@variable(m, [i=1:s, j=1:s])
JuMP.@SDconstraint(m, P[k] >= 0.0)
if s > 0
P[k] = JuMP.@variable(m, [i=1:s, j=1:s])
JuMP.@SDconstraint(m, P[k] >= 0.0)
end
end
JuMP.@variable(m, λ >= 0.0)