Definition
Two-Bag Knapsack Decision Problem
Instance: Indexed items for , two weight bounds , and a profit threshold . Integers are encoded in binary unless specified otherwise.
Question: Are there disjoint index sets such that
Each item is placed in the first bag, placed in the second bag, or skipped. Equal pairs at distinct indices are distinct items. This signed-integer formulation allows negative weights and profits; the usual nonnegative-weight restriction additionally requires .