[gecode-users] dealing with matrix
naguissa light
naguissa1989 at gmail.com
Wed Oct 2 07:10:49 CEST 2013
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/3cfa85d3/attachment.html>
More information about the users
mailing list