libprima / prima

PRIMA is a package for solving general nonlinear optimization problems without using derivatives. It provides the reference implementation for Powell's derivative-free optimization methods, i.e., COBYLA, UOBYQA, NEWUOA, BOBYQA, and LINCOA. PRIMA means Reference Implementation for Powell's methods with Modernization and Amelioration, P for Powell.
http://libprima.net
BSD 3-Clause "New" or "Revised" License
291 stars 35 forks source link

Fixing gdb issue with gcc11 on Windows #152

Closed nbelakovski closed 5 months ago

nbelakovski commented 5 months ago

It complained "A syntax error in expression, near `= -1'."

Apparently gdb was evaluating the expressions in the command file as if they were in Fortran. Since Fortran 77 does not have "==" this produced a syntax error. Setting the language to C manually appears to resolve this.

It's also not entirely clear why we were looking for exitcode to be equal to -1. Some tests showed that if the exitcode were 2 this would be a problem, so we look at the more reasonable value of 0 instead.

Closes #151

zaikunzhang commented 5 months ago

Great! Thank you @nbelakovski !