Info
この質問は閉じられています。 編集または回答するには再度開いてください。
two conditions on two 8*256 matrices
1 回表示 (過去 30 日間)
古いコメントを表示
Hi everyone,
i have problem about knapsack problem.
8*256 matrix A contains element representing the weigth
8*256 matrix B containg elements representing the value .
i want to get the max value with a weight constrains not excceding 28.
below line of code retund a lot value ?
indices = find((A(:,1)<capacity) & y(:,1)== max(valid_benefit_ar))
2 件のコメント
madhan ravi
2019 年 4 月 13 日
編集済み: madhan ravi
2019 年 4 月 13 日
Illustrate with a short 3 X 3 matrix and explicitly show how your result should look like.
回答 (2 件)
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!