yalmip / YALMIP

MATLAB toolbox for optimization modeling
https://yalmip.github.io/
Other
464 stars 134 forks source link

infeasable soulation #1258

Closed Moradielham closed 1 year ago

Moradielham commented 1 year ago

Dear Prof, I need help and I hope you can help me... why is my soulation infeasable?

johanlofberg commented 1 year ago

Leaving aside that you appear to manually enumerate a polytopic (you can probably have YALMIP do that for you) using horrible error-prone copy-paste code, follow standard strategy of simplify and reduce

https://yalmip.github.io/debugginginfeasible

For instance, it looks like already a single one of the vertices leaves you with problems

Cons = robustify(Cons); optimize(Cons(1))

i.e. your model is severely broken

johanlofberg commented 1 year ago

Already this fails (i.e. first vertex, one block of one LMI)

lim = [sai11 Dn;Dn' sai22]<=0;
lambda=recover(depends(Wuncertain));
optimize(replace(lim,lambda,[1;zeros(63,1)]))