Can I use two dimensions as upper and lower bound in GA code to solve a minimization optimization poroblem?
2 次查看(过去 30 天)
显示 更早的评论
I have a finite element mesh of a rectangular plate. The nodes on the plate is the spring locations and they are my constraint. I have upper and lower bounds on the nodes in x and y axes. How can use GA to solve such problem. In case of one dimension, I can straightway use lower and upper bound since I can specify them in the default algorithm of GA. Please help.
0 个评论
回答(1 个)
Matt J
2014-11-7
编辑:Matt J
2014-11-7
The lb and ub input arguments are allowed to be vectors. If you have N unknowns with upper and lower bounds, just make lb and ub vectors of dimension Nx1.
2 个评论
Matt J
2014-11-9
For every unknown u(i), it will be bounded as lb(i)<=u(i)<=ub(i) for all i=1...N where N is the total number of unknowns.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Genetic Algorithm 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!