mirror of
https://github.com/kalmarek/PropertyT.jl.git
synced 2025-02-17 02:30:54 +01:00
check_distance_to_cone returns single float
This commit is contained in:
parent
e5366b7305
commit
b43482325d
@ -219,10 +219,8 @@ function check_property_T(name::String, S, Id, solver, upper_bound, tol, radius)
|
|||||||
warn("The solution matrix doesn't seem to be positive definite!")
|
warn("The solution matrix doesn't seem to be positive definite!")
|
||||||
@logtime LOGGER Q = real(sqrtm(Symmetric(P)))
|
@logtime LOGGER Q = real(sqrtm(Symmetric(P)))
|
||||||
|
|
||||||
sgap = distance_to_positive_cone(Δ, λ, Q, 2*radius, LOGGER)
|
sgap = check_distance_to_cone(Δ, λ, Q, 2*radius, LOGGER)
|
||||||
if isa(sgap, Interval)
|
|
||||||
sgap = sgap.lo
|
|
||||||
end
|
|
||||||
if sgap > 0
|
if sgap > 0
|
||||||
info(LOGGER, "λ ≥ $(Float64(trunc(sgap,12)))")
|
info(LOGGER, "λ ≥ $(Float64(trunc(sgap,12)))")
|
||||||
Kazhdan_κ = Kazhdan_from_sgap(sgap, length(S))
|
Kazhdan_κ = Kazhdan_from_sgap(sgap, length(S))
|
||||||
|
Loading…
Reference in New Issue
Block a user