Preview

Genetic Algorithm for System Identification

Good Essays
Open Document
Open Document
819 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Genetic Algorithm for System Identification
INDIAN INSTITUTE OF TECHNOLOGY BHUBANESWAR

Digital Signal Processing Lab Report 6

Submitted by Name Allam Levi Ratnakar B Suresh Roll Number 08EEB025 08EEB026

Problem:
Design a model for the plant h (z) =0.2600+0.9300z¯¹+0.2600z¯² using direct modeling (Adaptive Algorithm LMS/RMS). The channel is associated with the following functions.

where p(k) is the output of each of linear part of the channels

Theory:
The aim of this experiment is to create a model for a plant with given parameters using direct modeling for the given different functions.

Given
H (z) =0.2600+0.9300z¯¹+0.2600z¯²

Matlab code for the given problem:
Main program is given below whereas subroutines aregiven after this program ends. inp = randn(1,502); p = [0.26 0.93 0.26]; snr = input('enter snr \n'); x=rand(10,30); for i=1:10 for j=1:30 if x(i,j)>0.5 x(i,j)=1; else x(i,j)=0; end end

end for i=1:10 a(i,:)=x(i,1:10); b(i,:)=x(i,11:20); c(i,:)=x(i,21:30); end for i=1:10 wt(i,:)=[bin2deci(a(i,:)) bin2deci(b(i,:)) bin2deci(c(i,:))]; end for n=1:20 for i=1:10 for j=1:500 X(1:3) = inp(j:j+2); Y1(i,j) = X*p'; sp(j) = rms(X); noise(i,j) = sqrt(sp(j)*(10^(-snr/10))); Y2(i,j)=tanh(Y1(i,j)+noise(i,j)); Y3(i,j) = X*wt(i,:)'; er1(i,j) = Y2(i,j)-Y3(i,j); ers1(i,j)=er1(i,j)*er1(i,j); end ermax(i,:) = max(ers1(i,:)); MSE(i,:) = 0.5*db(sum(ers1(i,:))/ermax(i,:)); end T=[wt a b c MSE]; T1=sortrows(T,34);

T2=T1(1:8,:); wt1=T2(:,1:3); a1=T2(:,4:13); b1=T2(:,14:23); c1=T2(:,24:33);

coa= crossover(a1); cob= crossover(b1); coc= crossover(c1);

mua= mutation(coa); mub= mutation(cob); muc= mutation(coc);

a2=[a1; coa; mua]; b2=[b1; cob; mub]; c2=[c1; coc; muc];

for i=1:24 wt2(i,:)=[bin2deci(a2(i,:)) bin2deci(b2(i,:)) bin2deci(c2(i,:))]; end

for i=1:24 for j=1:500 X1(1:3) = inp(j:j+2); Y21(i,j) = X1*p';

sp1(j) = rms(X1); noise1(i,j) = sqrt(sp1(j)*(10^(-snr/10))); Y22(i,j)=tanh(Y21(i,j)+noise1(i,j)); Y23(i,j) = X1*wt2(i,:)'; er2(i,j) = Y22(i,j)-Y23(i,j);

You May Also Find These Documents Helpful

  • Good Essays

    Gold Penny

    • 315 Words
    • 2 Pages

    The purpose of this lab is to convert a regular penny into a “gold” penny.…

    • 315 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Step 3: Complete the following pseudocode based on the algorithm and the variables you declared above.…

    • 777 Words
    • 4 Pages
    Satisfactory Essays
  • Powerful Essays

    BIO100 week1 lab

    • 628 Words
    • 3 Pages

    |Exp| Leaf | Flow | Temp | CO2 in | CO2 out |Light|Filter| Area | P |…

    • 628 Words
    • 3 Pages
    Powerful Essays
  • Satisfactory Essays

    2. Five variables that should be controlled during the experiment is the amount of sunlight, room temperature, amount of water, the time of day the plant is watered and the certain type of plant. To make sure the plants get the same amount of sunlight, make sure to put them both in the same spot so that one plant doesn’t get more sunlight than the other. To make sure they both stay in the same room temperature, put them both in the same room. With the amount of water come up with a measurement, and then make sure you give both plants that amount. Pick out a time of day for the plants to get watered make sure you water one earlier than the other since it is part of your hypothesis that they grow faster when watered in the morning. Finally, make sure that…

    • 471 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    EIC and Tax Tables

    • 13897 Words
    • 56 Pages

    $50 100 150 200 250 300 350 400 450 500 550 600 650 700 750 800 850 900 950 1,000 1,050 1,100 1,150 1,200 1,250 1,300 1,350 1,400 1,450 1,500 1,550 1,600 1,650 1,700 1,750 1,800 1,850 1,900 1,950 2,000 2,050 2,100 2,150 2,200 2,250 2,300 2,350 2,400 2,450 2,500…

    • 13897 Words
    • 56 Pages
    Satisfactory Essays
  • Good Essays

    Brassica Rapa

    • 1037 Words
    • 5 Pages

    The dependent variable is the Brassica Rapa and it is depending on the temperature. Before the experiment took place, all plants were in 22 degrees Celsius for three weeks to grow to the preferred maturity. They were then taken out and pollinated. After pollination the plants were set in separate temperatures to mature for another two weeks. After the two weeks were over, the plants were taken out of their temperatures and soil to determine maturity and productivity. To do so, the plants were weighed, the length was measured, the pods were counted, and the amounts of mature seeds were counted as…

    • 1037 Words
    • 5 Pages
    Good Essays
  • Powerful Essays

    3. How will you be able to determine the rate of photosynthesis in this simulation?…

    • 1307 Words
    • 6 Pages
    Powerful Essays
  • Better Essays

    #include #include float avg_wt,avg_tt; int i = 0,ttl_wt=0,ttl_tt=0,qt; struct process { int prn; char type; int bt; int wt; int tt; struct process *nxt; }*stfor,*stbck,*np,*endfor,*endbck,*temp; void ins_node(struct process *np) { if(np->type == 'f') { if(stfor == NULL) stfor = endfor = np; else { endfor->nxt = np;…

    • 401 Words
    • 2 Pages
    Better Essays
  • Satisfactory Essays

    1.03 Scientific Method

    • 435 Words
    • 2 Pages

    The independent variable in this experiment will be the time of day that the plant is being watered. The dependent variable will be the plant growth rate.…

    • 435 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    b) Discuss the results you would expect if your hypothesis is correct. Then provide a physiological explanation for the effect of your variable on plant growth.…

    • 519 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Cardio Lab Report

    • 1090 Words
    • 5 Pages

    * Exploration: Answer the questions. The questions in the Exploration section are the same questions in your CardioLab instructions.…

    • 1090 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    0.36 0.64 0.00 0.18 0.82 0.00 0.18 0.82 0.50 0.45 0.55 0.00 0.27 0.73 0.67 0.36 0.64 0.50 0.45 0.55 0.40 0.55 0.45 0.33…

    • 2005 Words
    • 58 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Student

    • 595 Words
    • 3 Pages

    0.02 up to 1.0 in steps of 0.01), by running the procedure described above for each value of p and for many slots (at least a thousand slots per value of p). The more simulated slots, the more accurate the results will be. Based on this statistics, plot two graphs: 1) the…

    • 595 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Insert the Multisim capture of the input CH-1 and output CH-2 waveforms here. Record the positive and negative peak voltages and average voltage for the input and output signals. Enter the data in Table 1 under the Simulation column.…

    • 800 Words
    • 8 Pages
    Powerful Essays
  • Powerful Essays

    P = .19X1 + 0.33X2 + 0.16X3 + 0.31X4 + 0.5X5 + 0.16X61 + 0.16X62 + 0.54X7 + 0.73X81 + 0.73X82 + 0X9 + 0.2X101 + 0.2X102…

    • 1097 Words
    • 5 Pages
    Powerful Essays