Can i get a sample code for Genetic algorithm

I'm doing a project on loss minimization on a distribution network with a distributed generation using GA. But, I've no idea about how to do genetic algorithm in matlab. Can someone help me?

9 Comments

i'm doing a project on optimal allocation and sizing on a radial distribution network with distributed generation using artificial bee colony algorithm.can i get the code or logic for that
I am doing a project on tuning PID controller of a quadcopter by using Genetic algorithm.can somebody help me!
a) Implement a simple GA with fitness−proportionate selection, roulette-wheel sampling, population size100, single−point crossover rate pc = 0.7, and bitwise mutation rate pm = 0.001. The used chromosome representation is the 64-bit IEEE-754 double precision format. b) The fitness function is designed to estimate the root of the function: ?(?) = ? 10 ൭17 − 200 ? ି ଶସ ௫ ൱ + 21 Consider the search range is within [-100, 100].
a) Report results of five runs. Every result set is obtained by running the GA for 100 generations and plotting the fitness of the best individual found at each generation as well as the average fitness of the population at each generation.
What is roulette-wheel sampling in this context?
With your chromosome said to be IEEE-754 double precision, and your mutation said to be bitwise, then the idea would be that you would do like rand(1,64)<0.001 and flip bits corresponding to true. A hint here is to typecast() the double to uint64, do the operation using bitget() and bitset(), and typecast() back to double.
i am doing a project on ORPD using genetic algortihm. someone please help me get matalb code
Hi @kelzang did you get the code ? Me too I need it please if you get it let me know. Thank you

Sign in to comment.

Answers (1)

Radom Color Image Encryption by using the Genetic Algorithm and neural network .can anyne help me over

1 Comment

Sorry, No. Due to the laws of the United States, we cannot discuss encryption algorithms here.

Sign in to comment.

Tags

Asked:

on 4 Apr 2014

Commented:

on 9 May 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!