Please help and guide on how to solve this problem sequentially to get optimal values for x(n). I really need to solve this please.
N = 32
n = 1, 2,…N
w = 1/32 or can be normalized to 1
k = 2*pi/lambda
lambda = 1
theta = 1 to 180
half_beamwidth = 10
theta <= (theta_tar-half_beamwidth)
theta >= (theta_tar+half_beamwidth)
f = w∑(exp(ik*x(n)*cos theta))
minimize max(abs(w∑(exp(ik*x(n)*cos theta))))
f(theta=90) or theta_tar= 1
please how can I write out the codes using Interior Point Method if I chose initial values for x(1), x(2)…x(N)
and then try to repeat the optimization by adding a value to the initial x(n).
It looks like you intend w to be a CVX (optimization) variable or expression, but it is not declared or used as such.
x is declared as a CVX (optimization) variable, but doesn’t appear in the objective function or constraints, nor is any expression defined in terms of it.
Atar and As are used in the objective function and constraint, but are not shown anywhere. Are your A = kron… and A = exp… statements supposed to have Atar and As on the left-hand side?
In your first post, it appears you have a typo for the theta <= and theta >= constraints, becauser <= and >= appear to be interchanged (or -half_beamwidth, +half_beamwidth) given that half_beamwidth is positive.
You don’t seem to have addressed the items I pointed out in my previous post. As for wanting to make loc a (CVX?) variable, you have defined it as a random vector, so I have no idea in what way you would like it to be a (CVX) variable…