[gecode-users] dealing with matrix
Christian Schulte
cschulte at kth.se
Wed Oct 2 09:15:53 CEST 2013
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-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf
Of naguissa light
Sent: Wednesday, October 2, 2013 07:11 AM
To: users at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20131002/df166a89/attachment.html>
More information about the users
mailing list