Skip to main content

getVerificationOptimizationValueStruct.m


% This function is part of the NMSM Pipeline, see file for full license.
%
% This function parses and scales the design variables specific to
% Verification Optimization. If the model is synergy driven, synergy
% weights are properly calculated and fixed.
%
% (struct, struct) -> (struct)
% Design variables specific to Verification Optimization are parsed and scaled


function values = getVerificationOptimizationValueStruct(inputs, params)
values = getTreatmentOptimizationValueStruct(inputs, params);
if strcmp(params.controllerType, 'synergy_driven')
values.synergyWeights = getSynergyWeightsFromGroups(...
params.synergyWeightsGuess, params);
end
end