Static Optimization

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
zhizheng hu
Posts: 4
Joined: Mon Jun 19, 2023 12:21 am

Static Optimization

Post by zhizheng hu » Wed Feb 28, 2024 12:40 am

When I use the self-built model for static optimization calculation, the problem of matrix singularity always occurs. If the mac version is used, static optimization fails, and all data in the output file is 0. What usually goes wrong?
Error code
Win
Error detected by Simbody method lapackInverse (llat<)): latrix is singular so can't be inverted (apack getrf info=1)
Mac
StaticOptimization.record: The optimizer could not find a solution at time = 0.342time =0.342 Performance =0.0 Constraint violation =-nanSimTK Exception thrown at InteriorPointOptimizer.cpp:264:Optimizer failed: lpopt: Unrecoverable exception (status -100)OPTIMIZATION FAILED...

User avatar
Mohammadreza Rezaie
Posts: 412
Joined: Fri Nov 24, 2017 12:48 am

Re: Static Optimization

Post by Mohammadreza Rezaie » Wed Feb 28, 2024 1:50 am

Hi, perhaps there is zero mass body in your model.

User avatar
zhizheng hu
Posts: 4
Joined: Mon Jun 19, 2023 12:21 am

Re: Static Optimization

Post by zhizheng hu » Thu Feb 29, 2024 2:20 am

kernalnet wrote:
Wed Feb 28, 2024 1:50 am
Hi, perhaps there is zero mass body in your model.
The mass of all bodies is defined

User avatar
Mohammadreza Rezaie
Posts: 412
Joined: Fri Nov 24, 2017 12:48 am

Re: Static Optimization

Post by Mohammadreza Rezaie » Thu Feb 29, 2024 3:04 am

So, make sure that every free coordinate is actuated by muscles and/or a CoordinateActuator.

User avatar
zhizheng hu
Posts: 4
Joined: Mon Jun 19, 2023 12:21 am

Re: Static Optimization

Post by zhizheng hu » Thu Feb 29, 2024 8:09 am

kernalnet wrote:
Thu Feb 29, 2024 3:04 am
So, make sure that every free coordinate is actuated by muscles and/or a CoordinateActuator.
I locked all the other coordinates except elbow flexion and added a CoordinateActuator, but still couldn't perform static optimization calculations.

POST REPLY