how to set lower and upper bounds for variables to be 0.5 and 2.5 with step 0.5
2 次查看(过去 30 天)
显示 更早的评论
how to set lower and upper bounds for variables to be 0.5 and 2.5 with step 0.5 (Taking discrete values from a given set using genetic algorithm)
0 个评论
回答(1 个)
Alan Weiss
2017-12-8
Use Mixed Integer Optimization. Have a variable x(1) be integer-valued with a lower bound of 0 and an upper bound of 4. Take y = 0.5 + x(1)/2.
Alan Weiss
MATLAB mathematical toolbox documentation
0 个评论
另请参阅
类别
在 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!