Maybe I misunderstood something. I though you had a scenario where a large part of the model stays the same, and then you solve many problems with some parts changing, and you want to eliminate unnecessary YALMIP overhead from redefining the whole model. Why doesn't this work then?
TheRest = [setup the constant part]
for i = 1:100000
calculatesomethingsthat change
TheChangingConstraint = definethechangingconstraints
solvesdp([TheRest,TheChangingConstraint],objective)
analyzesolution
end
Tis will avoid a large part of the overhead.
But as I said, the fastest way to deal with many similar models is to use the optimizer framework (as it eliminates YALMIP overhead almost completely)