i have ten iterations to execute, and i want to use new power for every iteration, i.e for iteration 1 P1, for iteration 2 P2, … iteration 10 P10.
plz guide me how to use
zaheer
For/end loop in cvx tool box
You need to describe more clearly what you are trying to do, and what aspect you don’t know how to code.
Do you want a structure similar to this?
for i=1:10
cvx_begin
variable x
minimize(x^i)
% constraints
cvx_end
end
Or are Pi power levels which are input data? If so, have cvx_begin ... cvx _end inside for ... end and use P(i) in the CVX portion.