how to iterate a binary variable matrix

11 ビュー (過去 30 日間)
BOWEN LI
BOWEN LI 2019 年 6 月 27 日
コメント済み: Matt J 2019 年 6 月 27 日
Hi
I have a matrix which is filled with binary variables, and in each iteration i want to get a new binary matrix with the same size.
The way I made the binary matrix is by using the "optimvar" that i want to use the binary matrix as my decision variable in my optimization problem. For example "y" is the binary matrix i want, and "y"=optimvar('y', 'a','b','Type','integer','LowerBound',0,'UpperBound',1)
'a' is ranging from 0-30, and 'b' is ranging from 0-30 also.
Thank you so much!
  1 件のコメント
Matt J
Matt J 2019 年 6 月 27 日
You're welcome.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by