Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Moco] Switching a MocoStudy to implicit dynamics after constructing from MocoTrack causes error #3974

Open
nickbianco opened this issue Nov 25, 2024 · 0 comments
Assignees
Labels
bug Moco This label identifies bugs or desired features to aid Moco development

Comments

@nickbianco
Copy link
Member

Posted on the Moco forum.

If you construct a MocoTrack object, call "initialize()" to export the internal MocoStudy, and then switch the problem to use implicit mode, Moco issues the following error:

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

Rather than this cryptic error message, we should throw an exception that states that the problem is incompatible. We should also add a note to MocoTrack to tell users that they must update the guess if they change the problem to use implicit mode.

@nickbianco nickbianco added bug Moco This label identifies bugs or desired features to aid Moco development labels Nov 25, 2024
@nickbianco nickbianco self-assigned this Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Moco This label identifies bugs or desired features to aid Moco development
Projects
None yet
Development

No branches or pull requests

1 participant