You are now following this question
- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.
sir how to write genetic algorithm programming using matlab code
5 views (last 30 days)
Show older comments
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
kavitha darshaka
on 21 Jul 2021
did you find out the answer for this? If you have found, can you please tell me the answer?
Walter Roberson
on 21 Jul 2021
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.
Pk
on 18 Aug 2022
can you please provide me the code? if you have found answer ,please it would help me alot please
Walter Roberson
on 18 Aug 2022
Walter Roberson
on 19 Aug 2022
It is quite likely that you will have to write the code yourself (or hire someone else to write it.)
Pk
on 20 Aug 2022
Kavitha darshaka Did you find the code for genetic algorithm can you please help me
Sam Chak
on 20 Aug 2022
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?
Sam Chak
on 20 Aug 2022
Edited: Sam Chak
on 20 Aug 2022
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)?
Walter Roberson
on 20 Aug 2022
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.
Pk
on 21 Aug 2022
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
Pk
on 24 Aug 2022
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
Answers (0)
See Also
Categories
Find more on Genetic Algorithm in Help Center and File Exchange
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)