sir how to write genetic algorithm programming using matlab code

my project is to minimize 5th and 7th harmonics in 7 level multilevel inverter using Selective Harmonic Elimination PWM technique. iam not getting source code to generate 3 switching angles

15 Comments

did you find out the answer for this? If you have found, can you please tell me the answer?
If your angles are variables then you should probably constrain them. However, you might not want to constrain to a single period: you might want to constrain to a bit wider than a single period so that you do not hit constraints while searching right near a boundary.
can you please provide me the code? if you have found answer ,please it would help me alot please
Thank you sir. but without using ga tool box . I want the code
It is quite likely that you will have to write the code yourself (or hire someone else to write it.)
Kavitha darshaka Did you find the code for genetic algorithm can you please help me
Hi @Pk
If you have the GA code that is written without the using the commands in the Global Optimization Toolbox, I'd like to know how exactly you are going use it to solve your problem.
Are you going to simply insert the Fitness Function, and let the program searches for you?
Or, you are going to set the likelihoods of crossover and mutation?
Say, if the GA is unavailable, how to manually solve your problem according to the knowledge of Engineering and Physics?
I want ga code by using mutation and crossover
Not sure how to help as I don't receive the info that I need to advise you appropriately.
It is unnecessary to constrain yourself to use only GA to solve the problem.
If it is a research, as long as you can use other available methods and the solution is acceptable and practical to many, then it is probably considered a good solution.
Read my queries and try answering each one to your best.
Are you good at Genetic Algorithm at the fundamental level (not talking about click and run the code)?
I do not understand why you do not want to use Mathworks ga(), but you are willing to use code that someone else wrote.
If the outcome is what is important, then use ga() which has the advantage of having a number of years of thought and debugging put into it.
If this is intended to be a learning task to explore genetic algorithms, then you would be expected to write the code yourself.
I used ga tool box. But I want to learn the ga code this is the basic for algorithm based on this we have (Pso,ABC) ALGORITHM WILL BE WRITTEN. SO I TRIED BUT GETTING ERRORS AND THE CODE WOULD BE WRONG. CAN YOU PLEASE HELP ME
Sir/madam can you please help me if you have code
Hi madam( anusha achugutla ) If you have code for multi level inverter can you please help me how to sort out this problem this would help me a lot please madam

Sign in to comment.

Answers (0)

Tags

Asked:

on 4 Mar 2016

Commented:

Pk
on 24 Aug 2022

Community Treasure Hunt

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

Start Hunting!