Cplex Matlab connection problem

5 visualizaciones (últimos 30 días)
Emmanouil
Emmanouil el 19 de Feb. de 2015
Comentada: zhichao shi el 3 de Ag. de 2017
Hello everyone,
I am trying to use Cplex with Matlab and I am encountering a strange problem. I am executing a big piece of code in Matlab, which, at a certain point, calls Cplex. Sometimes this call is succesfull, while other times, the cplex functions cause Matlab to crash, giving the message shown in the attached png file. If I press "Attempt to continue", I get the error shown in the attached txt file.
- There is no certain pattent that causes this crash. The error is usually caused when calling the function cplexoptimset('cplex') but other functions can cause that too, it is totally random.
-The strange thing is that if i open matlab and run cplexoptimset('cplex') in an empty workspace, it works fine every time. The problem shows up when it is embedded in my main code.
This error happens with any Cplex Optimization studio version (I have tried 12.6.1, 12.6 and 12.5) and in any pc I have tried. I am using Windows 7 64bit and Matlab 2014a.
Any ideas ?

Respuestas (4)

Eka Suwartadi
Eka Suwartadi el 20 de Jun. de 2017
This may solve your problem: https://yalmip.github.io/cplexcrash/
  2 comentarios
Eka Suwartadi
Eka Suwartadi el 20 de Jun. de 2017
Or, try this:
cplex = cplexoptimset('cplex');
cplex.output.clonelog = 0;
zhichao shi
zhichao shi el 3 de Ag. de 2017
It seems effective.

Iniciar sesión para comentar.


Andrei Pavlov
Andrei Pavlov el 11 de Abr. de 2017
I have the same problem too

Peter Leidl
Peter Leidl el 15 de Jun. de 2017
Same here. Matlab 2015b. Any ideas?

zhichao shi
zhichao shi el 3 de Ag. de 2017
Same problem. Matlab 2016b

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by