how to define a binary variable in GA tool box
조회 수: 2 (최근 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개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!