mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2024-09-17 09:28:00 +02:00
fix indentation to 4 spaces
This commit is contained in:
parent
fc54803b58
commit
47f6d3637e
@ -68,9 +68,7 @@ function time_string(elapsedtime, bytes, gctime, allocs)
|
||||
return str
|
||||
end
|
||||
|
||||
function exists(fname::String)
|
||||
return isfile(fname) || islink(fname)
|
||||
end
|
||||
exists(fname::String) = isfile(fname) || islink(fname)
|
||||
|
||||
function pmΔfilenames(prefix::String)
|
||||
isdir(prefix) || mkdir(prefix)
|
||||
@ -168,7 +166,6 @@ function λandP(name::String, SDP_problem::JuMP.Model, varλ, varP, warmstart=fa
|
||||
throw(ErrorException("Solver did not produce a valid solution!: λ = $λ"))
|
||||
end
|
||||
return λ, P
|
||||
|
||||
end
|
||||
|
||||
function fillfrominternal!(m::JuMP.Model, traits)
|
||||
@ -318,7 +315,6 @@ function check_property_T(name::String, S, Id, solver, upper_bound, tol, radius)
|
||||
SDP_problem, λ, P = create_SDP_problem(Δ, sdp_constraints, upper_bound=upper_bound)
|
||||
JuMP.setsolver(SDP_problem, solver)
|
||||
|
||||
|
||||
λ, P = λandP(name, SDP_problem, λ, P)
|
||||
end
|
||||
|
||||
@ -334,7 +330,6 @@ function check_property_T(name::String, S, Id, solver, upper_bound, tol, radius)
|
||||
|
||||
isapprox(eigvals(P), abs(eigvals(P)), atol=tol) ||
|
||||
warn("The solution matrix doesn't seem to be positive definite!")
|
||||
# @assert P == Symmetric(P)
|
||||
@logtime LOGGER Q = real(sqrtm(Symmetric(P)))
|
||||
|
||||
sgap = distance_to_positive_cone(Δ, λ, Q, 2*radius, LOGGER)
|
||||
|
Loading…
Reference in New Issue
Block a user