Changeset 867 for applications/dual/IterativeLocal
- Timestamp:
- 03/16/10 11:31:42 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/dual/IterativeLocal/pmsm_ildp3.m
r866 r867 8 8 9 9 Iterace = 5; %iterace 10 K = 5 0; %casy10 K = 5; %casy 11 11 N = 50; %vzorky 12 12 … … 72 72 % rhot = 0.00005; 73 73 % rhop = 0.0001; 74 rhoi = 1.5;75 rhoo = 1.5;76 rhot = 1.5;77 rhop = 1.5;74 rhoi = sqrt(mQ(1,1)); %1.5; 75 rhoo = sqrt(mQ(3,3));%1.5; 76 rhot = sqrt(mQ(4,4));%1.5; 77 rhop = 0.001; 78 78 79 79 %zvetseni hamiltonianu pro minimalizace 80 80 % mag = 1000; 81 mag = 5;81 mag = 1; 82 82 83 83 %prepinac sumu on/off 84 noise = 1;84 noise = 0; 85 85 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 86 86 %globalni promenne … … 168 168 for n = 1:N, 169 169 gnu = n; 170 [Uopt2(:, n), Hmin(n)] = fmincon(@Hamilt, uPi(k, Xkn(:, k, n),Pkn(:, :, k, n)), [], [], [], [], [], [], @Cond2, optimset('GradConstr','on','Display','notify','Algorithm','active-set' ));170 [Uopt2(:, n), Hmin(n)] = fmincon(@Hamilt, uPi(k, Xkn(:, k, n),Pkn(:, :, k, n)), [], [], [], [], [], [], @Cond2, optimset('GradConstr','on','Display','notify','Algorithm','active-set','TolFun',1e-12)); 171 171 % Uopt2(1,n)=sin(2*pi/20*k); 172 172 % Z = zeros(101,101); … … 195 195 end 196 196 mFi = matrixFi(Epsilon); 197 FiFiTInvFi = (mFi*mFi')\mFi;197 FiFiTInvFi = inv(mFi*mFi'+1e-5*eye(25))*mFi; 198 198 Wv(:,k) = FiFiTInvFi * Vn'; 199 199