% This function is part of the NMSM Pipeline, see file for full license.
%
% updates the optimal fiber length, tendon slack length, and max isometric
% force to be used in MTP
%
% (struct, array of number) -> (array of number)
% updates the initial guess for mtp
function mtpInputs = updateMtpInitialGuess(mtpInputs, precalInputs, ...
optimizedInitialGuess)
values = makeMuscleTendonLengthInitializationValuesAsStruct(optimizedInitialGuess, ...
precalInputs);
mtpInputs.optimalFiberLength = precalInputs.optimalFiberLength .* ...
values.optimalFiberLengthScaleFactors;
mtpInputs.tendonSlackLength = precalInputs.tendonSlackLength .* ...
values.tendonSlackLengthScaleFactors;
mtpInputs.maxIsometricForce = getMaxIsometricForce(precalInputs, values);
end