knapsack with google or-tools (c#)
<p>I'm trying to implement knapsack problem with 3 constraint with google-or tools.
Let's say i want to have an additional property called size for each of the item. So each item with have 3 property and i have to maximize the total value for the items. </p>

<pre><code>KnapsackSolver k = new KnapsackSolver(KnapsackSolver.KNAPSACK_DYNAMIC_PROGRAMMING_SOLVER, "mybin");
        long[, ,] profits = { {{ 10,20,30} ,{40,50,60}} };
        long[,] weights = {{44,21}};
        long[] capa = { 110 };
        k.Init(profits, weights, capa);
</code></pre>

<p>But it is not going anywhere. can somebody please correct me.</p>