Skip to content

Commit

Permalink
shrink_into_CH() verbose output is even more concise.
Browse files Browse the repository at this point in the history
  • Loading branch information
krivit committed Jan 29, 2024
1 parent 5f4d770 commit 95859cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/is.inCH.R
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ shrink_into_CH <- function(p, M, m = NULL, verbose=FALSE, ..., solver = c("glpk"
g.prev <- g
g <- min(g, abs(-1/o)) # abs() guards against optimum being numerically equivalent to 0 with -1/0 = -Inf.

if (verbose >= 3 && g < g.prev) message("\n-> ", g)
if (verbose >= 3 && g < g.prev) message("|", sprintf("%0.4f", g), "| ", appendLF = FALSE)
}
message("\nDone.")
if(verbose >= 3) message("")

g
}

0 comments on commit 95859cf

Please sign in to comment.