how to define a binary variable in GA tool box
1 次查看(过去 30 天)
显示 更早的评论
Hi all
I am working with a facility location problem where the cost of facility is depending on either opening[1] or not opening a facility.[0].So my one variable is binary.when I go to the tool box it asks for upper and lower bounds.but i want to fix the vaiable to either 0 or 1.How can I do that?
Thanx in advance
0 个评论
采纳的回答
Walter Roberson
2018-12-8
mark it as an integer variable with lb 0 and ub 1
5 个评论
buvaneshwari tk
2022-6-19
@Ayesha Maroof please share the code..it will helpful for my research work.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!