# The reason of error is unknown

cvx_begin
cvx_quiet(true);
minimize (G*A)
%G is the constant.
subject to
A(1,1)+A(1,2)+A(1,3)==1;
A(2,1)+A(2,2)+A(2,3)==1;
A(3,1)+A(3,2)+A(3,3)==1;

A(1,1)+A(2,1)+A(3,1)==1;
A(1,2)+A(2,2)+A(3,2)==1;
A(1,3)+A(2,3)+A(3,3)==1;

A(4,1)+A(4,2)+A(4,3)==1;
A(5,1)+A(5,2)+A(5,3)==1;
A(6,1)+A(6,2)+A(6,3)==1;

A(4,1)+A(4,1)+A(6,1)==1;
A(4,2)+A(5,2)+A(6,2)==1;
A(4,3)+A(5,3)+A(6,3)==1;

A(7,1)+A(7,2)+A(7,3)==1;
A(8,1)+A(8,2)+A(8,3)==1;
A(9,1)+A(9,2)+A(9,3)==1;

A(7,1)+A(8,1)+A(9,1)==1;
A(7,2)+A(8,2)+A(9,2)==1;
A(7,3)+A(8,3)+A(9,3)==1;

A >= 0;
A <= 1;
cvx_end;

??? Error using ==> cvxprob.solve at 8
Non-separable multiobjective problems are not supported.

Error in ==> cvx_end at 77
solve( prob );

Error in ==> main at 311
cvx_end;

You must not be showing us everything.

I don’t see a declaration for A, such as
`variable A(9,3)`
or whatever it is supposed to be…

You haven’t shown us what G is. No matter what dimensions G has, your objective
`G*A`
can not evaluate to a scalar, as is required for the objective function. So you need to fix that.

I also recommend that you remove cvx_quiet(true) until you have a correctly functioning program that you are confident in.

thanks for your reply! the G(3,9) is known, the variable A(9,3) has been declared after the statement cvx_begin, I have removed cvx_quiet(true),but there’s still the same mistake----"Non-separable multiobjective problems are not supported."
I want to know is there anything else I need to change?

Thank you ! The problem has been solved.