opensim-core icon indicating copy to clipboard operation
opensim-core copied to clipboard

[Moco] Error with exception handling when problems with path constraints fail

Open nickbianco opened this issue 3 years ago • 1 comments

The following error message is printed:

casVector should be 1-dimensional, but has size 0 x 0.
Thrown at MocoCasOCProblem.h:108 in convertToSimTKVector().

Is this the time vector, or the constraint errors vector? (Or something else?)

Noted by Hojin Song and Edward Syrett on the forum.

nickbianco avatar Sep 19 '22 16:09 nickbianco

Exception handling happens here: https://github.com/opensim-org/opensim-core/blob/ace2ad43a40740648299cd09d6c1d0fc30541ff1/OpenSim/Moco/MocoCasADiSolver/MocoCasADiSolver.cpp#L373

nickbianco avatar Sep 19 '22 16:09 nickbianco