Dear johan,
I used the below data in the given optimization problem
Using the folling matlab program results to the error that is shown after the program
How can I solve the optimization problem using yalmip
--------------------------------------------------------------------------------------------------------------
F2= [ -0.1551 - 0.5912i 1.2433 - 0.5241i 0.4226 + 0.1924i;1.2433 - 0.5241i 0.4226 + 0.1924i -10.7550 - 2.4243i];
a=[ 1.0000 + 0.0000i ; 0.5184 + 0.8551i ; -0.4626 + 0.8866i];
e=2.4999;
w=spdvar(3,1);
constraints=[abs(w'*a)-e*norm(w)]>=1;
objective=norm(conj(F2)*w);
options=spdsettings
sol=solvesdp(constraints, objective, options);
if sol.problem==0
solution=double(w)
else
display('hmm, something went wrong');
yalmiperroe(sol.problem)
end
-------------------------------------------
the run result was as,
Hmm, something went wrong!
ans =
Infeasible problem (BNB)
ans =
Infeasible problem
---------------------------------------
thank you
regards
F2= [ -0.1551 - 0.5912i 1.2433 - 0.5241i 0.4226 + 0.1924i;1.2433 - 0.5241i 0.4226 + 0.1924i -10.7550 - 2.4243i];
a=[ 1.0000 + 0.0000i ; 0.5184 + 0.8551i ; -0.4626 + 0.8866i];
e=2.4999;
w=sdpvar(3,1);
constraints=[abs(w'*a)-e*norm(w)]>=1;
objective=norm(conj(F2)*w);
options=sdpsettings
sol=solvesdp(constraints, objective, options);
constraints=[abs(w'*a)-e*norm(w)>=1];
sdpvar t
constraints=[w'*a*a'*w >= t^2,t-e*norm(w)>=1];
objective=norm(conj(F2)*w);
sol=solvesdp(constraints, objective)
sdpvar t
constraints=[real(w'*a*a'*w) >= t^2,(t-1)^2 >= e^2*w'*w, t-1>=0];
objective= real(w'*F2'*F2*w);
sol=solvesdp([-10000<= w <= 10000,constraints], objective,sdpsettings('solver','bmibnb'))
* Starting YALMIP global branch & bound.
* Branch-variables : 4
* Upper solver : fmincon
* Lower solver : GUROBI
* LP solver : GUROBI
Node Upper Gap(%) Lower Open
1 : Inf NaN 2.111E-26 2
2 : Inf NaN 2.111E-26 1 Infeasible
3 : Inf Inf Inf 0 Infeasible
* Finished. Cost: Inf Gap: Inf
* Timing: 92% spent in upper solver
* 1% spent in lower solver
* 6% spent in LP-based domain reduction
sol =
yalmiptime: 0.1620
solvertime: 8.2460
info: 'Infeasible problem (BMIBNB)'
problem: 1
w=sdpvar(3,1);
sdpvar t
constraints=[sqrtm(real(w'*a*a'*w))-e*sqrtm(w'*w)>=1];
objective=real(w'*F2'*F2*w);
sol=solvesdp([-10000<= w <= 10000,constraints], objective,sdpsettings('
solver','bmibnb'))
constraints=[sqrtm(real(w'*a*a'*w))-sqrtm(w'*w)>=1];