Input Matrix to Gurobi model in MatlabAnswered
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!
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.
Thank you very much Matthias for your answer ;)
Please sign in to leave a comment.