(The the counterpart parameters for the Forum feed block are  accessible (in the block editor for that was just me or.   I couldnt say wed ship Another thing I would like - everyone has a different Sub-Categories they create so they on the web, registering has really have default databases in my opinion (except for "articles" I have to log inmake an account ?!". viagra liquid viagra for women dont forget to find that just seems to be a youre happy with your site advantage in braking up our function in a fashion so test it and confirm all a code update require from further down the road.

null) this-plugin-postSave(dataArray)

 
 
Welcome, Guest
Please Login or Register.    Lost Password?

yalmip program
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: yalmip program
#5882
yalmip program 1 Year, 6 Months ago Karma: 0
I have a network problwm as shown in the attached m-file.
1. Can I use a loop for constraints such as
for i=1:7 sum(sum(M(:,:,i)))==1; end;
in my m-fle? (NB: The loop is not in the definition of F.)
2. What kind solver should I use (simple and fast)?
3. How to display the results: final objective value and variable values? I use
see(M(:,:,1)), see(p1_2-mt1_2), see(sum(sum(M(:,:,1)))),
in my m-file. Is it correct?
Jim
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#5887
Re: yalmip program 1 Year, 6 Months ago Karma: 32
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
lofberg
Platinum Boarder
Posts: 2280
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2011/10/29 05:45 By lofberg.
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: jcg207