the following constraint takes huge long (about 0.8 hour) in yalmip to be stored:
C= [abs(elementaryPatternOverStations_linear(Steerability_constraint).'.*(FKernel(Steerability_constraint,:)*
wr)) <= ...
SLL*abs(elementaryPatternOverStations_linear(EF_pos_scanloss))*sum(amplitudeCoefficients)]
whereas the CVX counterpart
abs(elementaryPatternOverStations_linear(Steerability_constraint).'.*(FKernel(Steerability_constraint,:)*wr)) <= ...
SLL*abs(elementaryPatternOverStations_linear(EF_pos_scanloss))*sum(amplitudeCoefficients);
is absolutely immediate. I also used a for cycle to store it, but huge time taken as well.
Some details (below is not matlab code; it's just to give the size):
size(elementaryPatternOverStations_linear(Steerability_constraint).')=size((FKernel(Steerability_constraint,:)*wr)) ~ [52864 1]
size( SLL*abs(elementaryPatternOverStations_linear(EF_pos_scanloss))*sum(amplitudeCoefficients)) ~ [1 1]
size(wr) ~ [336 1]
length(SLL) ~ [1 1]
Any clue why there's such a huge difference in time?
Thank you