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!