フィルターのクリア

how to define a binary variable in GA tool box

1 回表示 (過去 30 日間)
Ayesha Maroof
Ayesha Maroof 2018 年 12 月 7 日
コメント済み: buvaneshwari tk 2022 年 6 月 19 日
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

採用された回答

Walter Roberson
Walter Roberson 2018 年 12 月 8 日
mark it as an integer variable with lb 0 and ub 1
  5 件のコメント
Ayesha Maroof
Ayesha Maroof 2018 年 12 月 9 日
@Walter Roberson thankyou sooooo much.It worked :)
buvaneshwari tk
buvaneshwari tk 2022 年 6 月 19 日
@Ayesha Maroof please share the code..it will helpful for my research work.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Coder についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by