Skip to content

Commit cfad68c

Browse files
committed
add ncond to debug output
1 parent fe64824 commit cfad68c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/madl_lsopt.mad

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -265,13 +265,13 @@ local function ld_lmdif (env)
265265
local jstra, jiter, jtau, bisec, rcond, ncond in obj
266266

267267
-- default setup
268-
jstra, jiter, jtau, bisec, rcond = jstra or 1, max(1, jiter or 10),
269-
max(eps, jtau or 1e-3), bisec or obj.exec and 0 or 3,
270-
rcond or 1e-12
268+
jstra, jiter, jtau, bisec, rcond, ncond = jstra or 1, max(1, jiter or 10),
269+
max(eps, jtau or 1e-3), bisec or obj.exec and 0 or 3,
270+
rcond or 1e-12, ncond or 0
271271

272272
if env.info >= 3 then
273-
printf("nlopt: jstra=%d, jiter=%d, jtau=%g, bisec=%d, rcond=%g\n",
274-
jstra, jiter, jtau, bisec, rcond)
273+
printf("nlopt: jstra=%d, jiter=%d, jtau=%g, bisec=%d, rcond=%g, ncond=%d\n",
274+
jstra, jiter, jtau, bisec, rcond, ncond)
275275
end
276276

277277
-- adjust variables (i.e. adjust x to fit bbox if any)
@@ -420,13 +420,13 @@ local function ld_jacobian (env)
420420
local jstra, jiter, bisec, rcond, ncond in obj
421421

422422
-- default setup
423-
jstra, jiter, bisec, rcond = jstra or 1, max(1, jiter or 10),
424-
bisec or obj.exec and 0 or 3,
425-
rcond or 1e-12
423+
jstra, jiter, bisec, rcond, ncond = jstra or 1, max(1, jiter or 10),
424+
bisec or obj.exec and 0 or 3,
425+
rcond or 1e-12, ncond or 0
426426

427427
if env.info >= 3 then
428-
printf("nlopt: jstra=%d, jiter=%d, bisec=%d, rcond=%g\n",
429-
jstra, jiter, bisec, rcond)
428+
printf("nlopt: jstra=%d, jiter=%d, bisec=%d, rcond=%g, ncond=%d\n",
429+
jstra, jiter, bisec, rcond, ncond)
430430
end
431431

432432
-- adjust variables (i.e. adjust x to fit bbox if any)

0 commit comments

Comments
 (0)