Well, the argument sizes do not match as the exception tells you: the width * height of the matrix is different from the size of the underlying array.
Please check that Christian -- Christian Schulte, www.ict.kth.se/~cschulte From: users-boun...@gecode.org [mailto:users-boun...@gecode.org] On Behalf Of naguissa light Sent: Wednesday, October 2, 2013 07:11 AM To: users@gecode.org Subject: [gecode-users] dealing with matrix Hi everyone! In my model, I have to get the variables of my matrix from a program that is written in JAVA. Firstable, i get these varibles from another class in C++ and the model worked, but when i try to send the argument from java get this error : Exception: Matrix::Matrix(A, w, h): Sizes of argument arrays mismatch. but i used the same size of argument !!!!!!!!!!!!!!!!!!!!!! this is a part of the code and it works in C++: MMKP (const Options& opt) : a(*this,reader2.lire_size_nodes()*reader2.lire_size_testers(), 0,1){ const int nodes=reader2.lire_size_nodes(); const int testers= reader2.lire_size_testers(); Matrix <BoolVarArray> X (a,nodes,testers);////// here when i get the error So Do you have any idea about that ????? Thank YOU Naguissa
_______________________________________________ Gecode users mailing list users@gecode.org https://www.gecode.org/mailman/listinfo/gecode-users