Skip to content

Commit d843b48

Browse files
committed
Changed the initial guess to max otherwise it greatly overestimate the values
1 parent 20b7111 commit d843b48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

OpenSim/Analyses/StaticOptimization.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,9 +593,9 @@ int StaticOptimization::begin(const SimTK::State& s )
593593
ScalarActuator* act = dynamic_cast<ScalarActuator*>(&fs.get(i));
594594
if (act) {
595595
if (act->getMinControl() != -INFINITY)
596-
_parameters[j++] = act->getMinControl();
596+
_parameters[j++] = act->getMaxControl();
597597
else
598-
_parameters[j++] = 0.;
598+
_parameters[j++] = 1.;
599599
}
600600
}
601601
}

0 commit comments

Comments
 (0)