Input Matrix to Gurobi model in Matlab
回答済みHi, I am writing to know if Gurobi can handle as input a matrix that is NOT a double real matrix. Indeed, since I have an "out of memory" error in Martlab, due to the limited dimensions the real array can have in Matlab, I had to transform the arrays A, Aeq, b, beq, intcon, ub and lb of my MILP problem into distributed matrices. However I get as error that "model.A must be a sparse double real matrix". Thank you in advance for your help!
-
正式なコメント
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?. -
Hi Marina,
With the Matlab interface, there is no other way to build the model. I suggest you construct the model constraint-wise by looping over the rows of your matrix using another API - I recommend our Python API. I doubt that you will be able to solve this model, though, if already the constraint matrix is too large to be kept in memory.
Cheers,
Matthias0 -
Thank you very much Matthias for your answer ;)
Marina
0
投稿コメントは受け付けていません。
コメント
3件のコメント