1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-12-26 02:30:29 +01:00

add missing L1_norm

This commit is contained in:
kalmarek 2018-08-15 19:09:01 +02:00
parent e4b5c59bd7
commit 2d62aa26f2

View File

@ -86,6 +86,7 @@ function distance_to_cone(Δ::GroupRingElem, λ, Q; wlen::Int=4, logger=getlogge
@logtime logger sos = compute_SOS(parent(Δ), Q) @logtime logger sos = compute_SOS(parent(Δ), Q)
residue = Δ^2-λ*Δ - sos residue = Δ^2-λ*Δ - sos
info(logger, "ɛ(∑ξᵢ*ξᵢ) ∈ $(aug(residue))") info(logger, "ɛ(∑ξᵢ*ξᵢ) ∈ $(aug(residue))")
L1_norm = norm(residue,1)
info(logger, "‖Δ² - λΔ - ∑ξᵢ*ξᵢ‖₁ ∈ $(L1_norm)") info(logger, "‖Δ² - λΔ - ∑ξᵢ*ξᵢ‖₁ ∈ $(L1_norm)")
distance = λ - 2^(wlen-1)*L1_norm distance = λ - 2^(wlen-1)*L1_norm