call cplex from matlab

58 次查看(过去 30 天)
How can I call cplex from matlab? And what versions of matlab and cplex should I have inorder to do so?

采纳的回答

yekdane  khattara
yekdane khattara 2013-12-21
编辑:Walter Roberson 2018-5-28
add the path who you are installed cplex
>> addpath ('C:\Program Files\IBM\ILOG\CPLEX_Studio_Academic123\cplex\matlab\x64_win64')
and save the path
>>savepath
and same way for running the examples
>>addpath ('C:\Program Files\IBM\ILOG\CPLEX_Studio_Academic123\cplex\examples\src\matlab')
>>savepath
  3 个评论
Del
Del 2014-1-3
编辑:Walter Roberson 2017-12-24
Never mind! I used
>>addpath(' C:\Program Files\IBM\ILOG\CPLEX_Studio126\cplex\matlab\x64_win64')
instead of
>>addpath C:\Program Files\IBM\ILOG\CPLEX_Studio126\cplex\matlab\x64_win64
and everything worked perfectly fine :)

请先登录,再进行评论。

更多回答(1 个)

Khyathi Mishra
Khyathi Mishra 2021-4-4
You must have IBM CPLEX OPTIMIZATION STUDIO 12.10 version
the versions released after that doesnt have files related to interfacing matlab with cplex.
  1 个评论
Pavan chandra Mandava
Do you know which version of matlab is compatible with Cplex 12.10 Thhank you

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 MATLAB Report Generator 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by