Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
two conditions on two 8*256 matrices
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
madhan ravi
el 13 de Abr. de 2019
Editada: madhan ravi
el 13 de Abr. de 2019
Illustrate with a short 3 X 3 matrix and explicitly show how your result should look like.
Respuestas (2)
Matt J
el 13 de Abr. de 2019
There are lots of knapsack problem solvers on the File Exchange
0 comentarios
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!