You haven't attached any file.
Yes, you can use loops, but you have to add the constraints to a constraint list
| Code: |
myconstraints = []
for i=1:7
myconstraints = [myconstraints, sum(sum(M(:,:,i)))==1];
end;
|
You retrieve the solution using the DOUBLE operator
solvesdp(myconstraints,myobjective)
double(M)
SEE shows you the internal representation of the objects, not useful for you
I recommend you to work through at least the first 2 tutorials on the Wiki
users.isy.liu.se/johanl/yalmip/pmwiki.php?n=Tutorials.Tutorials