For each capacity and each item : if Notice the difference from 0/1: you use , not .
This allows taking the same item multiple times. Process weights from to (not reversed like 0/1). When computing , you want to already include items from this round. This formula captures the relationship between smaller problems.