nlopt icon indicating copy to clipboard operation
nlopt copied to clipboard

NLOPT-2.4.2, iterm = -6 in luksan_plis routine in luksan/plis.c

Open DeanLym opened this issue 7 years ago • 2 comments

An "nlopt failure" exception is sometimes raised for one of my optimization problem.

I found out the following post about the issue. http://thread.gmane.org/gmane.science.analysis.nlopt.general/274

I did the same as suggested in the post, and it also turns out to be "iterm=-6" for my case.

The optimal solutions are fine if I ignore the exception.

Why is "iterm=-6" in luksan_plis routine in luksan/plis.c deemed nlopt failure?

DeanLym avatar Mar 16 '17 06:03 DeanLym

According to the PLIS source code, iterm < 0 indicates that "the method failed". I don't know how reliable it would be to assume that the result is still okay...

stevengj avatar Nov 14 '17 17:11 stevengj

hi @DeanLym, in the doc they talk about return code 6, but I dont see how it can be positive here, there's clearly a mismatch between the code and the doc.

/*     STEEPEST DESCENT DIRECTION */

        luksan_mxuneg__(nf, &gf[1], &s[1], &ix[1], &kbf);
        snorm = gnorm;
        if (kit < stat_1->nit) {
            ++stat_1->nres;
            kit = stat_1->nit;
        } else {
             *iterm = -10;
            if (iters < 0) {

                *iterm = iters - 5;
            }
        }
    }

the error codes are set in luksan_pyfut1__

jschueller avatar Apr 02 '20 17:04 jschueller