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

1 次查看(过去 30 天)
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!

采纳的回答

Jordan Ross
Jordan Ross 2017-1-9
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Performance and Memory 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by