Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

Matlab code for genetic algorithm

Status
Not open for further replies.

amarnathy

Newbie level 3
Joined
Nov 8, 2011
Messages
3
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,297
Re: MATLAB CODE FOR GENETIC ALGORITHM

i can help anything related to genetic algorithm. feel free to ask.

Mahmud
i need matlab code for genetic algorithm for the design of fir and iir filters
at first plz send me genetic algorithm code

---------- Post added at 11:27 ---------- Previous post was at 11:24 ----------

Even I came across that tool and its examples.But I need a MATLAB code for genetic algorithm so that I can modify as per my requirement for my project.Kindly help
did u got code for genetic algorithm if so plz send me tis s my id amarnath401@gmail.com

---------- Post added at 11:32 ---------- Previous post was at 11:27 ----------

Hello, everybody

I use ¨Practical Genetic Algorithms - Randy L. Haupt, Sue Ellen Haupt¨, includes Matlab codes, introduction to GA, PSO, Ant System and some others heuristic Methods, also u can search for THE PRACTICAL HANDBOOK OFl GENETIC ALGORITHMS APPLICATIONES, i can´t put the links because are copyrights problems with edaboard.com

please PM me if u need some help.

I make my Eng Thesis using Optimization Techniques.

PSO(Particle Swarm Optimization)
GA(Genetic Algoritms)
Ant Colony Optimization

And recently include the EDA (Estimation of Distribution Algorithms ), there are a free toolbox for Matlab from Spanish PhD MATEDA

Best Regards

hello
i need matlab code for genetic algorithm
 

sanakadd

Newbie level 1
Joined
Nov 9, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,284
Re: MATLAB CODE FOR GENETIC ALGORITHM

i can help anything related to genetic algorithm. feel free to ask.

Mahmud
hello mahmud,
if I gave you a fitness function, can u implement it in GA tool of matlab?
 

swarish00

Newbie level 1
Joined
Nov 23, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,285
Re: MATLAB CODE FOR GENETIC ALGORITHM

Can anyone plz send me the coding for Genetic Algorithm applied in Image Enhancement And Color Image Processing.
I need them urgently!!!!!!!
 

niranjan kumar

Newbie level 1
Joined
Nov 26, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,285
Re: MATLAB CODE FOR GENETIC ALGORITHM

i can help anything related to genetic algorithm. feel free to ask.

Mahmud
i HAVE A MATLAB CODE ON GENETIC ALGORITHM BUT WHEN I RUN IT SHOWS ME ERROR,, PLEASE IF ANY ONE CAN PLEASE CROSS THE ERRORS AND HELP ME IN FINISHING IT PLEASE ,,,

THIS IS MY ID Y.V.NIRANJANKUMAR@GMAIL.COM....

please if helps me in completion of my project
 

shymaa abdelghany

Newbie level 1
Joined
Dec 20, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,286
Re: MATLAB CODE FOR GENETIC ALGORITHM

i can help anything related to genetic algorithm. feel free to ask.

Mahmud
"excuse me sir i need information about the genetic algorithm formation for a matlab code .. i need steps or so for the formation of the code ,, i need it for an assignment and am new to matlab ... the code is for finding a point for zero electric field , in a 2-d plane with 10 point charges ,,, thaanx so much in advance ...
 

rajapriya

Newbie level 1
Joined
Jan 19, 2012
Messages
1
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,285
Re: MATLAB CODE FOR GENETIC ALGORITHM

hi Mahmud
'm doing project in genetic algorithm. need to optimize the parameters. need guidence to start my work. could u pls help me n guide me tofinish my project.


rajapriya
 

lakshmen

Newbie level 4
Joined
Aug 26, 2011
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,315
Re: MATLAB CODE FOR GENETIC ALGORITHM

I am doing facial emotion detection and i am using GA for feature selection. Need some help GA to get it running. Need some code...please help. Can mail me at cnnlakshmen_2000@yahoo.com
 

fluid2008

Newbie level 1
Joined
Feb 11, 2012
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,284
Re: MATLAB CODE FOR GENETIC ALGORITHM

I need an optimization problem solved by matlab.can any one mail it for me?fluid2008@yahoo.com
thank you
 

izadpks

Newbie level 1
Joined
Aug 3, 2008
Messages
1
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,286
Re: MATLAB CODE FOR GENETIC ALGORITHM

Salam mahmud...i'm going to do my research with title "hybrid genetic algorithm and interval type 2 fuzzy system inference for optimization"..could you please help me to get starting with this project...email me at rohaizad@poliku.edu.my.....thank you very much...
 

    V

    points: 2
    Helpful Answer Positive Rating

amarnathy

Newbie level 3
Joined
Nov 8, 2011
Messages
3
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,297
Re: MATLAB CODE FOR GENETIC ALGORITHM

hi mahmud,
this s amar from andhra university.I need some information regarding to finding the iir lowpass filter coefficients using genetic algorithm.plz help me
 

aisha23

Newbie level 1
Joined
Feb 25, 2012
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,284
Re: MATLAB CODE FOR GENETIC ALGORITHM

i can help anything related to genetic algorithm. feel free to ask.

Mahmud
hi,
i have to use optimisation technique to maximise the value of my output. plz send me a pseudocode.i will be thnkful for ur help
 

bassa

Super Moderator
Staff member
Joined
Jul 15, 2007
Messages
1,810
Helped
191
Reputation
402
Reaction score
153
Trophy points
1,353
Location
Sri Lanka
Activity points
10,031
Re: MATLAB CODE FOR GENETIC ALGORITHM

Refer chapter 8 in "Introduction to Genetic Algorithms" By S.N. Deepa

"Chapter 8: Genetic Algorithm Implementation Using Matlab"
Introduction to genetic algorithms - S. N. Sivanandam, S. N. Deepa - Google Books

Ex in page 224

Problem 1
Write a MATLAB program for maximizing f(x) = x2 using genetic algorithm,
where x ranges from 0 to 31. Perform 4 iterations.

Source Code
Code:
%program for Genetic algorithm to maximize the function f(x) =xsquare
clear all;
clc;
%x ranges from 0 to 31 2power5 = 32
%five bits are enough to represent x in binary representation
n=input(‘Enter no. of population in each iteration’);
nit=input(‘Enter no. of iterations’);
%Generate the initial population
[oldchrom]=initbp(n,5)
%The population in binary is converted to integer
FieldD=[5;0;31;0;0;1;1]
for i=1:nit
phen=bindecod(oldchrom,FieldD,3);% phen gives the integer value of the
binary population %obtain fitness value
sqx=phen. ∧2;
sumsqx=sum(sqx);
avsqx=sumsqx/n;
hsqx=max(sqx);
pselect=sqx./sumsqx;
sumpselect=sum(pselect);
avpselect=sumpselect/n;
hpselect=max(pselect);
%apply roulette wheel selection
FitnV=sqx;
Nsel=4;
newchrix=selrws(FitnV, Nsel);
newchrom=oldchrom(newchrix,:);
%Perform Crossover
crossoverrate=1;
newchromc=recsp(newchrom,crossoverrate);%new population after crossover
%Perform mutation
vlub=0:31;
mutationrate=0.001;
newchromm=mutrandbin(newchromc,vlub,mutationrate);%new population after
mutation disp(‘For iteration’);
i
disp(‘Population’);
oldchrom
disp(‘X’);
phen
disp(‘f(X)’);
sqx
oldchrom=newchromm;
end
Output
Code:
Enter no. of population in each iteration4
Enter no. of iterations4
oldchrom =
1 0 0 1 0
0 1 0 1 0
0 0 1 1 0
1 1 1 1 0
FieldD =
5
0
31
0
0
1
1
For iteration
i =
1
Population
oldchrom =1 0 0 1 0
0 1 0 1 0
0 0 1 1 0
1 1 1 1 0
X
phen =
18
10
6
30
f(X)
sqx =
324
100
36
900
For iteration
i =
2
Population
oldchrom =
1 1 1 0 0
0 1 1 0 1
0 0 1 1 0
1 0 1 0 1
X
phen =
28
13
6
21
f(X)
sqx =
784
169
36
441
For iteration
i =
3
Population
oldchrom =
0 0 0 0 1
0 0 1 1 1
0 0 0 0 1
1 0 1 0 0X
phen =
1
7
1
20
f(X)
sqx =
1
49
1
400
For iteration
i =
4
Population
oldchrom =
1 0 0 0 0
1 1 0 1 1
1 0 0 1 1
0 1 1 1 1
X
phen =
16
27
19
15
f(X)
sqx =
256
729
361
225
 

amarnathy

Newbie level 3
Joined
Nov 8, 2011
Messages
3
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,297
Re: MATLAB CODE FOR GENETIC ALGORITHM

hi everyone,i need to form the objective function wrt error function and there by find filter coefficients wrt genetic algorithm(iir low pass 1st order),plz help me
 

plaxmi

Newbie level 1
Joined
Feb 27, 2012
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,286
Re: MATLAB CODE FOR GENETIC ALGORITHM

Hi
My final year project is related to multiobjective implementation of a travelling tournament problem using GA on Hadoop platform. also firstly i hav to implement this thing on MATLAB sequentially, parallely and hierarchically... so how to proceed with coding?? it would b vry kind if any1 could help me regarding this.. my emailid laxmipoka@gmail.com. thank u in advance.
 

ashokk85

Newbie level 1
Joined
Mar 6, 2012
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,287
Re: MATLAB CODE FOR GENETIC ALGORITHM

Hi mahmud , this ashok here , doing my PG project in Dynamic stability analysis for offshore wind farm connected to the grid through HVDC link. For better optimization iam using genetic algorithm , I need GA coding in matlab for dyanamic stability analysis where offshore wind farm is stabilized by controlling PID controller Ka, kp, Ki value. can u pls help me in that . if so send u r response to my id mashokkuma@gmail.com
 

Tabassum -un-nisa

Newbie level 2
Joined
Mar 6, 2012
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Ramanagaram
Activity points
1,291
Re: MATLAB CODE FOR GENETIC ALGORITHM

hey mahmud,
Iam doing miniproject on network optimisation using genetic algarithm..
can u plzz tell me an idea how to optimise a network say LAN using genetic algarithms in matlab..if u r having code for genetic algarithm or if u hv any kind of info plzzzzzz mail me at tabu.unnisa@gmail.com
 

tharuni

Newbie level 1
Joined
Mar 7, 2012
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,287
Re: MATLAB CODE FOR GENETIC ALGORITHM

hii
i am doing project on optimal location of fact controllers using genetic algorithm...here what i need is by using the load flow data i need to write a program to get optimal value...can u please give program for that...i'm in little bit hurry...plzz reply me as soon as possible... i need to submit it with in 2 days.. please mail it to taru.taurus@gmail.com

thanku in advance ....
 
Last edited:

darshandorugade

Newbie level 1
Joined
Mar 22, 2012
Messages
1
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,287
Re: MATLAB CODE FOR GENETIC ALGORITHM

pinkyvidya : Even i am working on the same stuff hav u got the matlab full car GA code ? if yes please reply me my mail id for reference darshan.dorugade@gmail.com

---------- Post added at 10:03 ---------- Previous post was at 09:55 ----------

pinkyvidya : Even i am working on the same stuff hav u got the matlab full car GA code ? if yes please reply me my mail id for reference darshan.dorugade@gmail.com
 

shwetavarshney

Newbie level 2
Joined
Mar 22, 2012
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,292
hello sir

i m working on ant colony optimization techniques. so please send me matlab coading of ant colony optimization techniques. which is very usefull for me


thanx in advace
shwetavarshney05@gmail.com

---------- Post added at 08:04 ---------- Previous post was at 08:03 ----------

hello sir

i m working on ant colony optimization techniques. so please send me matlab coading of ant colony optimization techniques. which is very usefull for me


thanx in advace
shwetavarshney05@gmail.com
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top