We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d843b48 commit 6672eb1Copy full SHA for 6672eb1
OpenSim/Analyses/StaticOptimization.cpp
@@ -586,7 +586,9 @@ int StaticOptimization::begin(const SimTK::State& s )
586
_forceReporter->begin(sWorkingCopy);
587
_forceReporter->updForceStorage().reset();
588
589
- // Set initial guess to lowest activation
+ // Set initial guess to highest activation
590
+ // This is necessary because previous activation is used for determining
591
+ // the force of the muscle (therefore cannot be zero)
592
_parameters.resize(_modelWorkingCopy->getNumControls());
593
const Set<Actuator>& fs = _modelWorkingCopy->getActuators();
594
for(int i=0,j=0;i<fs.getSize();i++) {
0 commit comments