Changeset 781
- Timestamp:
- 01/12/10 23:09:15 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/bdmtoolbox/tutorial/mpdm/dist_ctrl_example.m
r774 r781 28 28 C1.class = 'LQG_ARX'; 29 29 C1.ARX = A1; 30 C1.Qu = 0. 1*eye(1);30 C1.Qu = 0.01*eye(1); 31 31 C1.Qy = 1*eye(1); 32 32 C1.yreq = 1; … … 66 66 67 67 loss_non_coop(i) = M.DS_y'*C1.Qy*M.DS_y + M.DS_u1'*C1.Qu*M.DS_u1 + M.DS_u2'*C1.Qu*M.DS_u2; 68 if loss_non_coop(i)>100 69 %keyboard 70 end 68 71 end 69 72 mean(loss_non_coop) 73 74 loss_coop = zeros(1,Ntrials); 75 for i=1:Ntrials 76 P1.neighbours = {'P2'}; 77 P2.neighbours = {'P1'}; 78 M= arena(DS,{P1,P2},exper); 79 80 loss_coop(i) = M.DS_y'*C1.Qy*M.DS_y + M.DS_u1'*C1.Qu*M.DS_u1 + M.DS_u2'*C1.Qu*M.DS_u2; 81 if loss_coop(i)>100 82 %keyboard 83 end 84 end 85 mean(loss_coop) 86