Block diagram of the two-step optimization formulation. asyn stands for activations reconstructed from synergy components, ma and madev for moment arm and moment arm deviations, respectively, sa for activation scale factors for muscles with experimental EMG data, SVmod for synergy vectors for muscles without experimental EMG data, and for optimal fiber lengths and their scale factors, and for tendon slack lengths and their scale factors, a for model activations, ares for reserve activations, Fs for reserve actuator strength values (which are 0.5 Nm), athres for half-range of allowable activation variation (0.01 for muscles with associated experimental EMG data and 0.05 for all other muscles), f for muscle forces, and M for inverse dynamic moments. i is the muscle (44 muscles), j is the time frame (101 frames), and k is the tracked joint moment (six loads).