Skip to main content

DesignOptimizationTool.m


% This function is part of the NMSM Pipeline, see file for full license.
%
% This function takes a properly formatted XML file and runs the
% Design Optimization module and saves the results correctly for
% use in the OpenSim GUI.
%
% (string) -> (None)
% Run DesignOptimization from settings file


function DesignOptimizationTool(settingsFileName)
settingsTree = xml2struct(settingsFileName);
verifyVersion(settingsTree, "DesignOptimizationTool");
[inputs, params] = parseDesignOptimizationSettingsTree(settingsTree);
[outputs, inputs] = DesignOptimization(inputs, params);
reportTreatmentOptimizationResults(outputs, inputs);
saveDesignOptimizationResults(outputs, inputs);
end