Skip to content

Commit

Permalink
add some prints
Browse files Browse the repository at this point in the history
  • Loading branch information
bodono committed Jun 28, 2024
1 parent 72b6158 commit 8e8370a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/scs.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ static void compute_residuals(ScsResiduals *r, scs_int m, scs_int n) {
r->res_unbdd_a = SAFEDIV_POS(nm_ax_s, -r->ctx_tau);
r->res_unbdd_p = SAFEDIV_POS(nm_px, -r->ctx_tau);
}
scs_printf("iter %i\n", r->last_iter);
scs_printf("bty_tau %.6f\n", r->bty_tau);
scs_printf("nm_aty %.6f\n", NORM(r->aty, n));
if (r->bty_tau < 0) {
nm_aty = NORM(r->aty, n);
r->res_infeas = SAFEDIV_POS(nm_aty, -r->bty_tau);
Expand Down

0 comments on commit 8e8370a

Please sign in to comment.