Skip to main content

calcMinimizingMetabolicCost.m


% This function is part of the NMSM Pipeline, see file for full license.
%
% This function minimizes the metabolic cost.
%
% (struct, struct, struct) -> (Array of number)
%

function cost = calcMinimizingMetabolicCost(values, modeledValues, ...
params)

metabolicCost = calcMetabolicCost(values.time, ...
values.statePositions, modeledValues.muscleActivations, params);
cost = calcMinimizingCostArrayTerm(metabolicCost);
end