File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 1+ #include <string.h>
2+
13#include "glbopts.h"
24#include "linalg.h"
35#include "minunit.h"
@@ -261,9 +263,15 @@ static const char *partial_warm_start_qafiro(void) {
261263 scs_printf (
262264 "partial_warm_start_qafiro: most x+y (first 2 NaN, NaN s) took %li iters\n" ,
263265 (long )info .iter );
264- mu_assert (
265- "partial_warm_start_qafiro: most x+y (NaN s) should beat cold start" ,
266- info .iter < cold_iters );
266+ if (strstr (info .lin_sys_solver , "indirect" )) {
267+ mu_assert (
268+ "partial_warm_start_qafiro: most x+y (NaN s) should converge in <= cold iters" ,
269+ info .iter <= cold_iters );
270+ } else {
271+ mu_assert (
272+ "partial_warm_start_qafiro: most x+y (NaN s) should beat cold start" ,
273+ info .iter < cold_iters );
274+ }
267275
268276 /* Step 7: Perturbed x and y, NaN s (simulates nearby problem solution) */
269277 for (i = 0 ; i < n_val ; ++ i ) {
You can’t perform that action at this time.
0 commit comments