亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? example_1.m

?? 面波反演的一個例子。。。。 里面有文件說明 相信大家會好好利用的
?? M
字號:
%This program uses Genetic Algorithm Toolbox to find Thicknesses and 
%Shear Wave Velocities (vs) by forward solution of Rayleigh function using 
%experimental dispersion data. 
%Genetic Algorithm Toolbox by: Chipperfield, A., P. Fleming, H. Pohlheim, 
%and C. Fonseca (1994).
%Forward Solution of Rayleigh Function by: Rix, G. J., and C. G. Lai (1999)
%
%Authors: Morteza Zarrabi and Shahram Pezeshk
%Department of Civil Engineering 
%The University of Memphis
%Spring 2004 
%REVISED: April 2005 by Morteza Zarrabi and Shahram Pezeshk
%To save and insert the best solution of previous 
%generations in place of the worst solution of the next generations. 
%This has been done to keep and not lose the best solutions of each 
%generation. 
%REVISED: Summer 2005 by Morteza Zarrabi to calculate and save the best 
%solutions of the Shear Wave Velocity
%
%This program is free software; you can redistribute it and/or modify it 
%under the terms of the GNU General Public License as published by the
%Free Software Foundation; either version 2 of the License, or 
%(at your option) any later version.
%
%This program is distributed in the hope that it will be useful, but 
%WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
%or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License 
%for more details.
%
%You should have received a copy of the GNU General Public License
%along with this program; if not, write to the Free Software
%Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
%
%This program is associated with the Following publications: 
%1- Pezeshk, S., and M. Zarrabi (2005). A new inversion procedure for 
%spectral analysis of surface waves using agenetic algorithm, Bull. 
%Seism. Soc. Am. 95(5), 1801-1808. 
%2- Morteza Zarrabi (2006). Ph.D. Dissertation, the University of Memphis.
%For more information please visit http://umdrive.memphis.edu/mzarrabi/www
%
%--------------------------------------------------------------------------
clc;
clear all;
StartTime = clock

MaxGen  = 70;  % Maximum number of generations
popSize = 70;  % Number of populations in each generation

geneLength = [15,15,15 15]; % 4 Layers including half space

Max_Layer = 4;

% Parameter Max_Con is used to control convergence. The smaller the number, 
% the better solution will be obtained; however, the number of populations 
% will be much higher and will take longer to converge.
% 
Max_Con = 45; % Maximum value of best objective function



%********************* Assign lower and upper bounds **********************

for i = 1:Max_Layer     
    lowBound(i) = 400;    % m/s
    
    uppBound(i) = 600.0;  % m/s 
end

% ********************** Develope FieldD matrix ***************************

code     = zeros(1,length(geneLength)) ;  % code for decoding
scale    = zeros(1,length(geneLength)) ;  % scaling for decoding
lowBin   = ones(1,length(geneLength))  ;  % 
uppBin   = ones(1,length(geneLength))  ;

FieldD = [geneLength;lowBound;uppBound;code;scale;lowBin;uppBin] ;


%***************** Read experimental dispersion curve *********************
 
           load NumExample1.txt;
           vr_exp = NumExample1;   

%********** Generate the initial binary string population *****************

chromosome = crtbp(popSize,sum(geneLength));

%****************** Loop over the number of generations *******************
genNum  = 1;   %Initial number of generations

while genNum <= MaxGen 
    Generation = genNum
    
%*************** Decode chromosomes to unknown real values ****************
%
%*** Line('state',sum(100*clock)) added to the end of crtbp to link the ***
%*** initial random number generation to computer clock.                *** 

    unknowns = bs2rv(chromosome,FieldD); 
      
%*********************** Estimate shear wave velocities *******************
%
    for j = 1:popSize
        Generation = genNum
        Population = j
        for i = 1:Max_Layer     
           vs(i) =    unknowns(j,i);
           vsPop(j,i)= unknowns(j,i);    
        
        end
   
         velocity = Mlayer_NumEx1(vs); 
       
         vr_theo(:,j) = velocity; 
 
    end
                    
%************ Compute the Fitness of the Population and sort **************

   [i1,i2] = size(vr_exp);
   for j = 1:popSize 
       ObjV1(j) = 0.0;
       for i = 1:i1       
           ObjV1(j) = ObjV1(j) + (abs(vr_theo(i,j) - vr_exp(i)))^1;
       end
   end 
       
%********** Trasnpose the objective vector into a column vector************
    
    ObjV = ObjV1';
    
    
%******* Find the maximum objective function which is the worst case ******   
     [bad_pop,iworst] = max(ObjV);
 
    
%********* Change the maximum objective function with the best one   ******
%********* of the previous generation for generations greater than 1 ******
%     
      if genNum > 1 
          chromosome(iworst,:) = old_chromosome(best_index(genNum - 1),:); 
          ObjV(iworst) = ObjV_old(ibest);
          vr_theo(:,iworst) = old_vr_theo(:,ibest);
      end

%************** Replace the corresponding objective function **************
    
       ObjV_old = ObjV;
    
    
% ***** find the minimums of objective function for each generation *******
% *****(Best), and its mean                                         *******

      [Best(genNum,1),ibest] = min(ObjV);
      Best(genNum,2) = mean(ObjV);
     

% **********Save the best index number (ibest) in a vector*****************
%      
     best_index(genNum) = ibest;
%      
     
% *********** Save all the generated Shear Wave Velocities  ***************

     vsAll(:,:,genNum) = unknowns(:,:);
% 
% ******** save the best Shear Wave Velocity set for each generation ******
%        
     vsGen_best(:,genNum) = unknowns(ibest,:)'; 
%     
%**** Save the worst solution number ibest in a vector(in A_GA9 043005)****
%      
     worst_index(genNum) = iworst;
%     
%*** Save the best dispersion curve of each solution for each generation **
%    
     best_vr_theo(:,genNum) = vr_theo(:,ibest);
%  
%** Save the worst dispersion curve of each solution for each generation **
%   
     worst_vr_theo(:,genNum) = vr_theo(:,iworst); 
% 
%* Parameter vr_theo corresponding to the Best (ibest) for each generation*   
%    
     vr_theo_best(:,genNum)= vr_theo(:,ibest); 
% 
%******** Parameter vr_theo corresponding to the LAST BEST (ibest) ********
%     
    Last_vr_theo_best= vr_theo(:,ibest);
     
%************ Save the chromosome of the previous generation***************
   
     old_chromosome = chromosome;
   
%**** Save the theoretical phase velocities of the previous generation ****   
    
     old_vr_theo = vr_theo;
   

%************************ Ranking and fittness ****************************   
  
   selectPress   = 2.0 ;      % Ranking: 1.0 < selectPress < 2.0
   rankingMethod = 0    ;      % Ranking method: 0 = linear; 1 = nonlinear
 
   FitnV = ranking(ObjV,[selectPress,rankingMethod]);
    
%********** Perform selection from populations for Recombination **********
    
    SEL_F = 'sus';   
    SelCh = select(SEL_F,chromosome,FitnV);
    
%************************* Execute Recombination **************************
    
    XOV_F = 'xovdp';     
    xovRate = 0.6 ;       
    SelCh = recombin(XOV_F, SelCh, xovRate);
    
%************************** Mutate offspring ******************************
    
    MUT_F   = 'mut';          
    mutRate = 0.01 ;         
    
    SelCh   = mutate(MUT_F, SelCh, [], mutRate);

%************ Insert offspring in population replacing parents ************
    
    reinsOpt(1) = 1   ;      
    reinsOpt(2) = 1.0 ;      
   
    chromosome  = reins(chromosome, SelCh, 1, reinsOpt, ObjV);
     

    
%******* Terminate the loop if Best reaches to the limit (Max_Con) ********   
      if Best(genNum,1)<Max_Con
          genNum
          genNum = MaxGen
      end   
%      
%*************** Increment the generation and go to the next **************
      
      genNum = genNum + 1;    

 end   %End the program   

EndTime = clock

 figure(1)
 plot(Best(:,1));
 xlabel('Number of Generations')
 ylabel('Error Function')
 title('Convergence History for Example 1 (without thickness estimation)')
 %
 figure(2)
 freq = linspace(5,100,50);
 plot(freq,vr_exp,'xr');
 hold on
 plot(freq,vr_theo(:,ibest),'k');
 xlabel('Frequency (Hz)')
 ylabel('Phase Velocity (m/s)')
 title('Dispersion Curve for Example 1 (without thickness estimation)')
 legend ('Experimental Phase Velocity', 'Theoretical Phase Velocity') 
%

 figure(3)
 thk = [5 10 10]; %The simulated thicknesses
 vs_sim = [500 400 500 600]; %The simulated shear wave velocities
 vs_est = vsGen_best(:,length(vsGen_best));
 X = sum(thk)+17;
 thk_cum=[X, sum(thk), sum(thk), sum(thk(1)+ thk(2)), sum(thk(1)+ ...
          thk(2)),thk(1),thk(1),0];
 vs_sim_r = [vs_sim(4), vs_sim(4), vs_sim(3), vs_sim(3), vs_sim(2), ... 
             vs_sim(2), vs_sim(1), vs_sim(1)];
 vs_est_r = [vs_est(4), vs_est(4), vs_est(3), vs_est(3), vs_est(2), ...
             vs_est(2), vs_est(1), vs_est(1)];
 plot(vs_sim_r, thk_cum, 'k');
 hold on
 plot(vs_est_r, thk_cum, '--r');
 axis([0, vs_sim(4)+200, 0, X+3])
 axis ij
 xlabel('Shear Wave Velocity (m/s)')
 ylabel('Depth (m)')
 title('Soil Profile for Example 1 (without thickness estimation)')
 legend ('Simulated Shear Wave Velocity Profile', ...
         'Estimated Shear Wave Velocity Profile',3)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
另类小说视频一区二区| 久久久精品欧美丰满| 日韩一区二区三区视频| 亚洲国产一区视频| av亚洲精华国产精华精华 | 日本久久电影网| 中文在线资源观看网站视频免费不卡| 亚洲成人av一区二区三区| 色综合久久综合中文综合网| 中文字幕一区二区三区av| 国产成人午夜精品5599| 久久理论电影网| 国产一区二区美女诱惑| 精品动漫一区二区三区在线观看| 麻豆久久久久久| 精品国一区二区三区| 激情综合五月婷婷| 国产日韩成人精品| 国产69精品久久777的优势| 91精品国产一区二区三区蜜臀| 奇米亚洲午夜久久精品| 91麻豆精品久久久久蜜臀| 日本成人在线不卡视频| 久久这里只有精品视频网| 97久久精品人人爽人人爽蜜臀| 五月激情综合婷婷| 国产视频一区二区在线| 精品视频一区 二区 三区| 韩国成人精品a∨在线观看| 中文字幕一区av| 欧美一区二区黄色| 91香蕉视频污在线| 久久精品国产一区二区三 | 精品久久久三级丝袜| 91麻豆精品一区二区三区| 男人的天堂亚洲一区| 日韩美女精品在线| 精品国产三级a在线观看| 色欧美片视频在线观看| 国产综合色在线视频区| 亚洲国产成人91porn| 国产欧美精品一区| 欧美一区2区视频在线观看| 91年精品国产| 激情图片小说一区| 午夜电影一区二区三区| 日韩理论片中文av| 精品国产不卡一区二区三区| 色综合一区二区三区| 国产精品亚洲а∨天堂免在线| 日韩二区三区四区| 亚洲尤物视频在线| 亚洲欧洲一区二区三区| 久久精品亚洲国产奇米99| 欧美一卡2卡三卡4卡5免费| 色噜噜狠狠色综合中国| 不卡高清视频专区| 国产成人欧美日韩在线电影| 麻豆中文一区二区| 日日摸夜夜添夜夜添国产精品| 亚洲精品视频在线观看免费| 国产精品久久久一本精品 | 日本不卡视频在线| 婷婷中文字幕一区三区| 一区二区三区国产精华| 国产精品美女视频| 国产欧美日韩卡一| 久久久美女毛片 | 国产精品亲子伦对白| 久久综合网色—综合色88| 欧美不卡一区二区三区四区| 91精品国产色综合久久ai换脸| 欧美精品一二三区| 欧美久久久久久久久中文字幕| 在线观看www91| 欧美自拍偷拍一区| 欧美色综合网站| 欧美日韩激情一区二区| 欧美日韩在线综合| 欧美群妇大交群的观看方式| 8v天堂国产在线一区二区| 这里只有精品免费| 日韩精品在线一区| 精品成a人在线观看| 久久一留热品黄| 久久精品一区四区| 国产精品不卡一区二区三区| 亚洲欧美自拍偷拍色图| 亚洲免费毛片网站| 亚洲高清免费一级二级三级| 日本在线不卡视频一二三区| 麻豆精品国产91久久久久久| 国产在线视视频有精品| 成人国产精品视频| 在线免费观看一区| 欧美一区二区三区在线观看视频 | 久久综合五月天婷婷伊人| 欧美国产精品一区二区| 亚洲人午夜精品天堂一二香蕉| 亚洲欧美日韩国产综合在线| 午夜视频一区在线观看| 日韩avvvv在线播放| 国产一区二区在线观看视频| kk眼镜猥琐国模调教系列一区二区| 色综合欧美在线| 欧美一级国产精品| 中文成人av在线| 亚洲国产综合人成综合网站| 精品一区二区三区蜜桃| 成人av网站在线| 欧美日韩久久久久久| 26uuuu精品一区二区| 亚洲欧美日韩久久精品| 久久精品国产99国产| 不卡的电影网站| 欧美一区二区三区不卡| 国产欧美日韩综合精品一区二区| 一卡二卡欧美日韩| 国产一区二区视频在线播放| 在线视频你懂得一区| 久久一夜天堂av一区二区三区| 亚洲精品视频在线观看网站| 国模娜娜一区二区三区| 色屁屁一区二区| 国产农村妇女毛片精品久久麻豆 | 最新久久zyz资源站| 日韩精品国产欧美| 成人开心网精品视频| 在线播放/欧美激情| 亚洲欧洲日产国产综合网| 免费人成黄页网站在线一区二区| 94-欧美-setu| 国产欧美日韩激情| 美国十次综合导航| 欧美日韩美女一区二区| 国产精品区一区二区三| 国内精品嫩模私拍在线| 欧美久久久影院| 亚洲精品精品亚洲| 国产成人免费av在线| 91精品国产手机| 一区二区三区资源| 成人18精品视频| 国产亚洲自拍一区| 精品在线视频一区| 91麻豆精品国产91久久久久| 亚洲综合区在线| 91麻豆精品在线观看| 国产精品美女视频| 国产69精品久久久久毛片| 久久青草欧美一区二区三区| 毛片一区二区三区| 日韩视频永久免费| 日本一不卡视频| 在线电影一区二区三区| 伊人色综合久久天天人手人婷| 成人丝袜高跟foot| 欧美国产97人人爽人人喊| 国产传媒一区在线| 日本一区二区三区dvd视频在线| 久久超级碰视频| www国产精品av| 国产一区二区三区久久久| 精品va天堂亚洲国产| 国产麻豆9l精品三级站| 国产欧美视频一区二区| 成人美女在线视频| 亚洲欧美自拍偷拍| 一本到一区二区三区| 夜夜嗨av一区二区三区| 欧美视频在线观看一区二区| 性做久久久久久| 日韩一区二区三区电影在线观看| 婷婷开心激情综合| 日韩欧美一区二区免费| 国产在线一区二区综合免费视频| 精品88久久久久88久久久| 国产福利精品一区| 国产精品久久久一本精品| 日本丰满少妇一区二区三区| 午夜一区二区三区视频| 911精品国产一区二区在线| 男女激情视频一区| 国产日韩影视精品| 色综合久久88色综合天天| 亚洲一区电影777| 欧美一区二区高清| 国产99久久久国产精品免费看| 国产精品久久久久精k8| 欧美午夜影院一区| 久久99精品久久久久久| 国产精品网站导航| 色偷偷成人一区二区三区91| 日韩精品一区第一页| 精品国产污网站| 91毛片在线观看| 日韩影院免费视频| 国产精品蜜臀在线观看| 欧美日韩亚洲国产综合| 国产尤物一区二区|