obj = norm(Q); % minimize Q
%YALMIP settings
ops = sdpsettings('verbose',1,'solver','mosek','showprogress',1);
%Solve the optimization problem
disp('Solving LMIs...');
tt = tic;
sol = optimize([F1, F2],obj, ops); %F1 is the equation 26, as shown in attached LMI file. % and F2 is F2 = X>= exp(10^-5)*eye(sys.nx);
elapsedTime = toc(tt);
disp('Done!');
fprintf(1, 'Computation time: %f seconds', elapsedTime);
fprintf(1, '\nYALMIP status: %s',
sol.info);
fprintf('\n');