prima
prima copied to clipboard
Implement recursive test
PRIMA should support recursive calling. For example, cobyla should be able to minimize a function whose definition involves cobyla. The depth of the recursion can be larger than one. We have to test this.
The recursive test has been implemented in MATLAB:
https://github.com/libprima/prima/blob/main/matlab/tests/recursive.m
The MATLAB interface passes the recursive test on Linux, but not on Windows or macOS. I am not sure whether this is a limitation of MATLAB, OS, or PRIMA.
The same test should be conducted on the Fortran implementation, the C interface, and any other implementation or interface added in the future.