Dear Professor Löfberg,
I have tried a bigger variant of:
x=binvar(2,2);
C = [1 2; 3 4];
k=x.*C;
k=k(:);
F=[sum(x,1)==1, sum(x,2)==1]; %unique values
Where:
optimize(F, sum(k)) %works well
optimize(F, k'*k) %error, "Error solving relaxed problem with IPOPT" in 'debug'
After I changed the domain and cost
x=sdpvar(2,2);
k=ceil(x).*C;
F = [... , x(:)>=0]
optimize(F, sum(k)) %works well, but calls scip-NL
optimize(F, k'*k) %error "The LP relaxation is infeasible or too expensive"
Is there any way to combine binary problem with quadratic cost and not call nonlinear solver?
I blindly added another variable z=sdpv(1) with optimize( [F, z <= k'*k], z ) but the parsed model is the same.
QP solvers I have installed refuse to work with integer variables and integer-digesting ones refuse QP.
Best regards!