Skip to content

Commit 6672eb1

Browse files
committed
fixed a comment
1 parent d843b48 commit 6672eb1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

OpenSim/Analyses/StaticOptimization.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,9 @@ int StaticOptimization::begin(const SimTK::State& s )
586586
_forceReporter->begin(sWorkingCopy);
587587
_forceReporter->updForceStorage().reset();
588588

589-
// Set initial guess to lowest activation
589+
// 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)
590592
_parameters.resize(_modelWorkingCopy->getNumControls());
591593
const Set<Actuator>& fs = _modelWorkingCopy->getActuators();
592594
for(int i=0,j=0;i<fs.getSize();i++) {

0 commit comments

Comments
 (0)