Skip to content

Commit

Permalink
revert kt unscaling
Browse files Browse the repository at this point in the history
  • Loading branch information
goulart-paul committed Nov 26, 2024
1 parent 68e69a0 commit 15d102b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/info.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function info_update!(
#terms that have no affine parts anyway
normx = norm_scaled(d,variables.x)
normz = norm_scaled(e,variables.z) * cinv
norms = norm_scaled(einv,variables.s)
norms = norm_scaled(einv,variables.s)

#primal and dual infeasibility residuals.
info.res_primal_inf = (norm_scaled(dinv,residuals.rx_inf) * cinv) / max(one(T), normz)
Expand All @@ -54,8 +54,7 @@ function info_update!(
info.gap_abs = abs(info.cost_primal - info.cost_dual)
info.gap_rel = info.gap_abs / max(one(T),min(abs(info.cost_primal),abs(info.cost_dual)))

#κ/τ :: PJG: perhaps should really be scaled by cinv?
# :: YC: should be normalized by cinv
#κ/τ ratio (scaled)
info.ktratio = variables.κ * τinv * cinv

#solve time so far (includes setup!)
Expand Down

0 comments on commit 15d102b

Please sign in to comment.