Refers to the "knapsack" or "rucksack" problem in combinatorial optimization.
Questions tagged [knapsack-problem]
3 questions
12
votes
1 answer
Strategic planning and multi dimensional knapsack problem
I'm trying to find a planning approach to solve a problem that attempts to model learning of new material. We assume that we only have one resource such as Wikipedia, which contains a list of articles represented as a vector of knowledge it contains…
Artem
- 221
- 1
- 3
5
votes
1 answer
How do I solve the knapsack problem using the hill climbing algorithm?
I need to solve the knapsack problem using hill climbing algorithm (I need to write a program). But I'm clueless about how to do it.
My code should contain a method called knapsack, the method takes two parameters, the first is a 2xN array of…
lujain
- 51
- 1
- 2
0
votes
2 answers
How to represent "terminate episode" for Knapsack problem with a Pointer Network?
I am currently implementing a Pointer Network to solve a simple Knapsack Problem. However, I am a bit puzzled over the correct (or common, or "best") way to give the agent the option to stop taking the item (terminate episode). Currently, I have…
Sanyou
- 175
- 2
- 10