psuedocode for my program using GA and PSO is it possible?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Particle Swarm 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!