A
and P
both contain variables, and are multiplied. hence the error message.
if you are to use CVX, you will need a reformulation.
Also, if you are to use P >= 0
for a PSD constraint, you will need to use sdp mode. Alternative ways are addressed in Semidefinite programming mode — CVX Users' Guide .