From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Genetic Algorithm code

Hey,

I want to optimize the value of gains in PID controller.. I want to do it by genetic algorithm.. If there is any labview code on gentic algorithm?

0 Kudos
Message 1 of 4
(4,204 Views)

There's something here - Waptia - genetic optimization algorithm 1.0.0


Description:
Waptia is general genetic optimization algorithm - it tries to maximize user supplied function of N variables (so called "Fitness Function"). Function is given as strictly typed VI reference. So the optimization goal may be described as: find such set of N numbers for which Fitness Function value is highest.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 2 of 4
(4,182 Views)

thank you.. but i'm not able to figure out how to use it.. can you send me one example of how to use it?

0 Kudos
Message 3 of 4
(4,110 Views)

Documentation
Documentation is provided in "Waptia docs.rtf" file. It's just a description of all controls of Waptia.vi with some background information. Same information may be found in context help. Information on how to write your own fitness function is provided as comments in "Fitness Function Template.vit"
If you want to understand how Waptia works, whole code is extensively commented.

Examples
There is one quite complex example (but I hope that still understandable) located in _examples folder - "multimodal optimise.vi"

If you want any support on general or specifically genetic optimization problems, just contact me.

You can post a question on LAVA and the author will probably help you.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 4 of 4
(4,106 Views)