Is there any learning material available for Knapsack/Backpack problem in optimization toolbox of MATLAB?
조회 수: 2 (최근 30일)
이전 댓글 표시
How can I learn to experiment with Knapsack problem in optimization toolbox of MATLAB?
Is any video tutorial available out there?
댓글 수: 0
채택된 답변
Alan Weiss
2016년 12월 8일
I know of no tutorial, but I believe that the problem formulation is not hard. Use intlinprog. To maximize the value of the items in the knapsack, have the objective function vector f be the negative of the value of each item ( intlinprog minimizes, so to maximize, minimize the negative). Linear constraints, such as the total weight, can be easily included in the linear inequality constraint matrix A and the vector b.
Alan Weiss
MATLAB mathematical toolbox documentation
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Particle Swarm에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!