adjustModelFromOptimizerOutput.m
% This function is part of the NMSM Pipeline, see file for full license.
%
% The optimizer returns the optimized values after completion, these values
% should be used to change the input model to reflect the optimized state.
%
% (Model, cellArray, array) -> (Model)
% Adjust the model based on the output of the optimizer
function outputModel = adjustModelFromOptimizerOutput(model, functions, ...
values)
outputModel = Model(model);
for i = 1:length(values)
functions{i}(values(i), outputModel);
end
end