% This function is part of the NMSM Pipeline, see file for full license.
%
% This function gathers the maximum and minimum bounds for all path
% constraint terms.
%
% (struct) -> (struct)
% Computes max and min path bounds
function inputs = getPathConstraintBounds(inputs)
inputs.maxPath = [];
inputs.minPath = [];
for i = 1:length(inputs.path)
constraintTerm = inputs.path{i};
if constraintTerm.isEnabled
inputs.maxPath = cat(2, inputs.maxPath, ...
constraintTerm.maxError);
inputs.minPath = cat(2, inputs.minPath, ...
constraintTerm.minError);
end
end
end