Is there any learning material available for Knapsack/Backpack problem in optimization toolbox of MATLAB?
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ba Ba Black Sheep!
am 8 Dez. 2016
Beantwortet: Alan Weiss
am 8 Dez. 2016
How can I learn to experiment with Knapsack problem in optimization toolbox of MATLAB?
Is any video tutorial available out there?
0 Kommentare
Akzeptierte Antwort
Alan Weiss
am 8 Dez. 2016
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Particle Swarm finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!