Here x is a column vector,
lambda is a diagonal matrix,
A is a weight matrix to be generated randomly;
C is a column constant vector,
E is a unit column vector,
I have uploaded the main update equation image and the required formula expansions for the same.
The issue comes when I write the objective as it shows error of the type : Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.
My code is as follows:
function [x,f_opt] = follower_update(lambda,rho,E,A,C) rho = 2; E = eye(6,1); Z = [1 2 1 4 2 1]; lambda = diag(Z,0); A = rand(6,1); C = rand(1,1); cvx_begin variable x(6,1) nonnegative; minimize x'*x - [lambda*E]'*A'*x + exp(x) + (rho/2) * power(2,(norm(sum A'*x + A'*x + sum A'*x - C),2)); cvx_end f_opt = cvx_optval;
In my solution function fi(xi) = xi^2 and hi(xi)= exp(xi) and I have not included theta for now. Please help me with this error .