Using single or int16 variables instead of double for Cplex in Matlab

3 visualizzazioni (ultimi 30 giorni)
I need to solve a mixed integer problem using Cplex in MATLAB. At the momemnt the size of matrix of coefficient is really large (around 19 GB), which prevents Matlab to solve the problem. However, the type of this matrix is double, which I do not need this precision. The problem is that when I change this matrix (or all other matrices) to single or int16, I receive the error message "Error using cplexmilp (null)". Could you please help me to solve this problem? Thanks!

Risposta accettata

Jordan Ross
Jordan Ross il 9 Gen 2017
Hello Milad,
As I understand you are trying to pass int16 and single data types to the IBM CPLEX solver from MATLAB. As far as I can tell, it seems that the IBM CPLEX solver only takes in the double data type from MATLAB. See the following documentation from IBM which it talks about taking in doubles from MATLAB: https://www.ibm.com/support/knowledgecenter/en/SSSA5P_12.6.3/ilog.odms.cplex.help/CPLEX/MATLAB/topics/gs_use.html?view=embed

Più risposte (0)

Categorie

Scopri di più su Performance and Memory in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by