Well as I said before, you will not be able to do the upper levels using YALMIP, and if you use some black-box solver which makes call to some simulation which uses YALMIP, we've already discussed how to do that. There is nothing more to say about that.. It is all about the details on how to do the upper level, and that is not a YALMIP issue