# [gecode-users] Multiple Multidimensional Knapsack Problem (MMKP)

Guido Tack tack at gecode.org
Mon Jul 15 01:22:47 CEST 2013

```The error clearly states that the argument arrays have different sizes (in line 75), so you're probably confusing rows and columns.  Check the docs for Matrix.

If you can't see where the error originated, you can use gdb with "catch throw" to catch exceptions (or some other debugger).

And please don't post to users-owner.

Cheers,
Guido

> hi every one !
>
>
> i'm sorry to be so bothering but i really don't know how to solve my problem here:
>
> Mathematically, the placement problem the placement of testers into the right nodes) can be modeled by merging the two introduced knapsack variants: multidimensional and multiple knapsack problems. The obtained model is called Multiple Multidimensional Knapsack Problem (MMKP).. We assume that the
> execution environment consists of m nodes and we have n test components that
> may be assigned to them. We attempt to find an optimal solution of test com-
> ponent placement not violating resource and connectivity constraints and also
> maximizing their placement profit. We can formulate this problem using the MMKP variant
>  there is more details in a file below :
>
> The provided resources by the m nodes are given through three vectors: C
> that contains the provided CPU, R that provides the available RAM and B that
> contains the battery level of each node( see the C,R,B representations)
>
> In addition, the required resources for each test component are illustrated over
> three vectors: Dcthat carries the required CPU, Drthat contains the required
> RAM and Dbthat contains the required Battery by each tester.( see the Dc,Dr,Db representations)
>
> i have got an error that i dont know the sorce , i will post also my code file MMKP.cpp
>
> Thanks for evry help and very sorry to bother you again
> <MMKP.cpp><MMKP Model.png><C,R,B representations.png><Dc,DB,DR representations.png>_______________________________________________
> Gecode users mailing list
> users at gecode.org
> https://www.gecode.org/mailman/listinfo/gecode-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20130715/b3737f46/attachment.html>
```