Skip to main content

computeVerificationOptimizationEndpointFunction.m


% This function is part of the NMSM Pipeline, see file for full license.
%
% This function computes the terminal constraint (if any), and total cost
% function objective for verification optimization.
%
% (struct) -> (struct)
%


function output = computeVerificationOptimizationEndpointFunction(inputs)
if ~isempty(inputs.auxdata.terminal)
output.eventgroup.event = ...
calcVerificationOptimizationTerminalConstraint(inputs, ...
inputs.auxdata);
end
output.objective = ...
calcVerificationOptimizationObjective(inputs.phase.integral);
end