% mode: to get the probability of correct detection, set mode = 1
%       to get the probability of erroneous detection set mode = 0
mode = 0;

% Expected values of functions of n
% a = [a_0, a_1, ..., a_5]
a = [%%% fill here %%%];

% Linear program
cvx_begin

% fill in optimization problem in dependence of the variable "mode" here %

cvx_end
