The routine cutest_scons was throwing the following error on all problems:
[ans J] = cutest_scons(prob.x);
Error using mcutest
** CUTEst error, status = 2, aborting
Error in cutest_scons (line 7)
[varargout{:}] = mcutest('scons',varargin{:});
It appears that CUTEST_ccfsg was being called incorrectly where the parameter CUTEst_nnzj was being passed as both an input and an output in multiple positions. This led to an error where CUTEst thought that there was not enough memory for allocation of the Jacobian.
To fix this, I simply duplicated CUTEst_nnzj before the call. It's a single integer, so it's not that much memory. After the fix, everything seems to work fine.
Many thanks, Joseph. Well spotted. I suspect that there may be similar errors in other
interfaces (e.g., CUTEST_ccifsg), and I will check and correct if necessary.
The routine cutest_scons was throwing the following error on all problems:
[ans J] = cutest_scons(prob.x); Error using mcutest ** CUTEst error, status = 2, aborting
Error in cutest_scons (line 7) [varargout{:}] = mcutest('scons',varargin{:});
It appears that CUTEST_ccfsg was being called incorrectly where the parameter CUTEst_nnzj was being passed as both an input and an output in multiple positions. This led to an error where CUTEst thought that there was not enough memory for allocation of the Jacobian.
To fix this, I simply duplicated CUTEst_nnzj before the call. It's a single integer, so it's not that much memory. After the fix, everything seems to work fine.