psuedocode for my program using GA and PSO is it possible?
1 view (last 30 days)
Show older comments
Step 1: select h value [2 4] with ga (how to write objective fn for this random selection of h vlaues during every iteration till we get optimized cost)
step 2: Select tau value [6 100] with ga (how to write objective fn for this random selection of tau vlaues)
step 3: select n value [3 4] with ga (how to write objective fn for this random selection of n vlaues)
step 4: select k value [0.25 3] with pso (how to write objective fn for this random selection of k vlaues)
step 5: vector x=[h tau n k]
step 6: calculate fitness value (cost function) save vector x (here any algorithm ga or pso can be used to optimize. i have objective function for this..)
step 7: goto step 1-step5 select new x vector and optimize the cost function
0 Comments
Answers (0)
See Also
Categories
Find more on Particle Swarm in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!