About matrix normalization, Cannot perform the operation: {convex} ./ {convex}

Uncategorized
Aug 19, 2021
M

I define a variable w, and calculate a matrix B1 using w, B is a constant matrix, now I need to calculate
psp=0.5*sum(sum( abs( B/sum(sum(B))-B1/sum(sum(B1)) ) ));
minimize(1-psp)
how can I calculate psp without " / "?

by the way, Although I can’t prove that this function is convex, others can solve it. I don’t know what they do. This problem should be solvable

I’ve been troubled for a long time and don’t know how to solve it. Thank you very much if you can help me

M

This looks like a linear fraxctional , further complicated by abs.

It is your responsibility to prove convexity per the forum rules.

M
Replying to #2

Thank you for your answer, Could you take another look at this situation:
minimize(norm(B(:)-B1(:),2))
B is a constant matrix and B1 is calculated by variable w, The error message is:
Disciplined convex programming error:
Cannot perform the operation norm( {concave}, 2 )
Is this also the problem of convex function?

M

Apparently, B1 is a convex expression (function) of variable v. The argument of norm must be affine per DCP rules.

I commend you to re-read the link in my previous post, but this time more carefully. Going on blind fishing expeditions it not the proper way to use CVX or the forum.

M
Replying to #5

Thank you for your answer. Sorry, this is my first day to the forum. I will read the DCP ruleset carefully before posting