I have a dynamical system which as dynamics which look a bit like dot(x) = sqrt(x).
If I run the ocp solver starting from x = 0, MATLAB completely crashes, apparently in the ocp_create mex-file. (Windows, 64 bit, compiled with MinGW, and all defaults btw).
It is quite understandable that the mathematical problem might be unsolvable for such a case where the derivative is infinite, but it would be nice to get an exception in MATLAB i.s.o. MATLAB completely crashing and needing a restart.
I haven’t included a minimal code example nor the MATLAB crash log yet, as my guess was that the ‘problem’ formulated above would already be sufficiently specific. If you need either or both, I can make the effort.
Is any change in internal exception handling scheduled for future releases?