% This function is part of the NMSM Pipeline, see file for full license.
%
% This function calculates the discrete objectives for design optimization.
%
% (struct, struct, struct) -> (Number)
%
function discrete = calcDesignOptimizationDiscreteObjective(values, ...
modeledValues, auxdata)
[costTermCalculations, allowedTypes] = ...
generateCostTermStruct("discrete", "DesignOptimization");
discrete = calcTreatmentOptimizationCost( ...
costTermCalculations, allowedTypes, values, modeledValues, auxdata);
end