I have this optimization probem to solve. Its a mix integer programming problem. However, I don’t know how to use two or more variables in the objective function. I have used this code

sum_of_Pgu_over_g = sum(P_gu,1);

sum_of_departuregu_over_u = sum(departure_gu,2);

cvx_begin

variables P_gu Z sum_of_Pgu_over_g sum_of_departuregu_over_u;

dual variable lambda1 lambda2 lambda3 lambda4 lambda5 lambda6;

minimize P_gu Z sum_of_Pgu_over_g sum_of_departuregu_over_u

subject to

cvx_end`

It gives me the error in the objective function line “Error: Unexpected MATLAB expression.”, due to which I cannot proceed.