Borrar filtros
Borrar filtros

oplrun command does not work

3 visualizaciones (últimos 30 días)
Zi
Zi el 25 de Mzo. de 2022
Comentada: Zi el 27 de Mzo. de 2022
Does anyone know why my "oplrun command" does not run my cplex model?
I wrote two following lines in matlab and expected it to run my cplex model. But it only opens IBM ILGO CPLEX without runing the model.
command = 'oplrun model.mod model.dat';
[status, cmdout] = system(commandx);
Any help is greatly appreciated.
Thanks.
  2 comentarios
Walter Roberson
Walter Roberson el 25 de Mzo. de 2022
Could you confirm that model.mod and model.dat are in the current directory at the time you system() ?
And could you confirm that oplrun is in your Windows path ?
Zi
Zi el 27 de Mzo. de 2022
Thank you so much @Walter Roberson. Directory was the problem.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

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

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by