cvx_begin variable S_m_k_11(N, M) variable p_m(N, M) maximize( sum(sum(alpha1.*(log(S_m_k_11 .* p_m + B*delta2 )./log(2) )))); subject to .... cvx_end
where alpha1 is a N*M matrix, B and delta2 are constants.
Error using cvx/times (line 262)
Disciplined convex programming error:
Invalid quadratic form(s): not a square.
Error in q_m_p_m_calc_CVX (line 65)
maximize( sum(sum(alpha1.(log(S_m_k_11 . p_m + B*delta2 )./log(2) ))));
I am a beginner, please help me. Thanks a lot.