vendor/scs/test/problems/small_lp.h in scs-0.3.1 vs vendor/scs/test/problems/small_lp.h in scs-0.3.2

- old
+ new

@@ -26,16 +26,18 @@ k->l = m - k->z; d->m = m; d->n = n; gen_random_prob_data(nnz, col_nnz, d, k, opt_sol, seed); - SCS(set_default_settings)(stgs); + scs_set_default_settings(stgs); stgs->eps_abs = 1e-5; stgs->eps_rel = 1e-5; exitflag = scs(d, k, stgs, sol, &info); + perr = SCS(dot)(d->c, sol->x, d->n) - SCS(dot)(d->c, opt_sol->x, d->n); derr = -SCS(dot)(d->b, sol->y, d->m) + SCS(dot)(d->b, opt_sol->y, d->m); + scs_printf("true obj %4e\n", SCS(dot)(d->c, opt_sol->x, d->n)); scs_printf("primal obj error %4e\n", perr); scs_printf("dual obj error %4e\n", derr); success = ABS(perr) < 1e-4 && ABS(derr) < 1e-4 && exitflag == SCS_SOLVED;