Page 1 of 1

Static Optimization

Posted: Wed Feb 28, 2024 12:40 am
by qq914810812
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...

Re: Static Optimization

Posted: Wed Feb 28, 2024 1:50 am
by kernalnet
Hi, perhaps there is zero mass body in your model.

Re: Static Optimization

Posted: Thu Feb 29, 2024 2:20 am
by qq914810812
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

Re: Static Optimization

Posted: Thu Feb 29, 2024 3:04 am
by kernalnet
So, make sure that every free coordinate is actuated by muscles and/or a CoordinateActuator.

Re: Static Optimization

Posted: Thu Feb 29, 2024 8:09 am
by qq914810812
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.