Skip to content

Commit

Permalink
log more data to csv
Browse files Browse the repository at this point in the history
  • Loading branch information
bodono committed Jun 26, 2024
1 parent 8e045f7 commit 41c65af
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion linsys/cpu/direct/private.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "private.h"

const char *scs_get_lin_sys_method() {
const char *scs_get_lin_sys_method(void) {
return "sparse-direct-amd-qdldl";
}

Expand Down
2 changes: 1 addition & 1 deletion linsys/cpu/indirect/private.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "private.h"

const char *scs_get_lin_sys_method() {
const char *scs_get_lin_sys_method(void) {
return "sparse-indirect-scs";
}

Expand Down
14 changes: 14 additions & 0 deletions src/rw.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,15 @@ void SCS(log_data_to_csv)(const ScsCone *k, const ScsSettings *stgs,
"tau_normalized,"
"kap_normalized,"
"ax_nrm_inf,"
"ax_s_nrm_inf"
"px_nrm_inf,"
"aty_nrm_inf,"
"xt_p_x,"
"xt_p_x_tau,"
"ctx,"
"ctx_tau,"
"bty,"
"bty_tau,"
"b_nrm_inf,"
"c_nrm_inf,"
"scale,"
Expand Down Expand Up @@ -385,8 +392,15 @@ void SCS(log_data_to_csv)(const ScsCone *k, const ScsSettings *stgs,
fprintf(fout, "%.16e,", r_n->tau);
fprintf(fout, "%.16e,", r_n->kap);
fprintf(fout, "%.16e,", SCS(norm_inf)(r->ax, w->d->m));
fprintf(fout, "%.16e,", SCS(norm_inf)(r->ax_s, w->d->m));
fprintf(fout, "%.16e,", SCS(norm_inf)(r->px, w->d->n));
fprintf(fout, "%.16e,", SCS(norm_inf)(r->aty, w->d->n));
fprintf(fout, "%.16e,", r->xt_p_x);
fprintf(fout, "%.16e,", r->xt_p_x_tau);
fprintf(fout, "%.16e,", r->ctx);
fprintf(fout, "%.16e,", r->ctx_tau);
fprintf(fout, "%.16e,", r->bty);
fprintf(fout, "%.16e,", r->bty_tau);
fprintf(fout, "%.16e,", SCS(norm_inf)(w->b_orig, w->d->m));
fprintf(fout, "%.16e,", SCS(norm_inf)(w->c_orig, w->d->n));
fprintf(fout, "%.16e,", w->stgs->scale);
Expand Down

0 comments on commit 41c65af

Please sign in to comment.