Problem with ILOG_CPLEX_PATH

125 views
Skip to first unread message

zahra fatahi

unread,
Jun 27, 2021, 7:42:23 AM6/27/21
to COBRA Toolbox
To whom it may concern,

I have a problem installing cplex with Cobra toolbox
From the following link, I downloaded CPlEX

Then I get cplex_studio2010-osx, and by clicking on it, I install CPLEX_Studio_Community201 in the Application folder, then in terminal, I use
$ nano ~/.bashrc

And then change 

export ILOG_CPLEX_PATH=“export ILOG_CPLEX_PATH="/Applications/CPLEX_Studio_Community201"

Then control X, Yes, and the enter. Then I did 

$ source ~/.bashrc

Afterwards, in Matlab I did
 initCobraToolbox
 But still I saw 
ibm_cplex   active        0     0     0     0     -     -


Then I restart Matlab, my computer, but nothing was changed. 
Then I tried to use 
>> updateCobraToolbox() 
But I get the following error

> Checking for available updates ... fatal: not a git repository (or any of the parent directories): .git > The SHA1 of the last commit could not be retrieved.fatal: not a git repository (or any of the parent directories): .git Warning: The name of the current feature (branch) could not be retrieved. > In updateCobraToolbox>getCurrentBranchName (line 198) In updateCobraToolbox (line 34) > You cannot update your fork using updateCobraToolbox() because this is a development branch. > The current branch is: fatal: not a git repository (or any of the parent directories): .git
 Unrecognized function or variable 'lastCommit'. Error in updateCobraToolbox (line 168) fprintf('%s\n',['> The last commit to the current branch is: ' lastCommit]) 

Then again I reinstall Cobra and again install it, but still, I do not have the IBM-cplex installed, and also again when I use the command updateCobraToolbox(), again I got the same error.

I would be so thankful if you kindly guide me on how can I fix this problem?

My system is 
macOS Catalina, version 10.15.7

Best regards,
Zara


Ronan M.T. Fleming

unread,
Jun 27, 2021, 11:41:51 AM6/27/21
to COBRA Toolbox
Thats a bug. In updateCobraToolbox, replace:

if status_gitLastCommit ~= 0
fprintf(result_gitLastCommit);
fprintf(' > The SHA1 of the last commit could not be retrieved.');
else
lastCommit = result_gitLastCommit(1:6);
end

with

if status_gitLastCommit ~= 0
fprintf(result_gitLastCommit);
fprintf(' > The SHA1 of the last commit could not be retrieved.');
lastCommit = [];
else
lastCommit = result_gitLastCommit(1:6);
end
> --
>
> ---
> You received this message because you are subscribed to the Google Groups "COBRA Toolbox" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to cobra-toolbo...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/cobra-toolbox/4b111908-882d-46f4-8189-91a122050826n%40googlegroups.com.



--
--
Mr. Ronan MT Fleming B.V.M.S. Dip. Math. Ph.D.
----------------------------------------------------------------------------
Assistant Professor,
Division of Systems Biomedicine and Pharmacology,
Leiden Academic Centre for Drug Research,
Faculty of Science,
Leiden University.
https://www.universiteitleiden.nl/en/staffmembers/ronan-fleming
&
H2020 Project Coordinator,
Systems Medicine of Mitochondrial Parkinson’s Disease,
http://sysmedpd.eu
&
Associate Professor,
School of Medicine,
National University of Ireland, Galway.
----------------------------------------------------------------------------
Peer-reviewed publications: https://goo.gl/FZPG23
Mobile: +353 852 109 806
Skype: ronan.fleming
----------------------------------------------------------------------------
(This message is confidential and may contain privileged information.
It is intended for the named recipient only. If you receive it in
error please notify me and permanently delete the original message and
any copies.)

Ronan M.T. Fleming

unread,
Jun 27, 2021, 11:42:56 AM6/27/21
to COBRA Toolbox
Also, see this message from a while back...

Dear All,

for those of you who do not know, IBM have decided not to release a
MATLAB interface to the new version 20.1 of CPLEX. The previous
version of CPLEX (12.10) can still be downloaded and used, apparently
for the next 5 years.
https://www.ibm.com/support/pages/downloading-ibm-ilog-cplex-optimization-studio-v12100

Please would everyone that uses CPLEX via MATLAB go to this page
https://ibm-data-and-ai.ideas.aha.io/ideas/CPLEX-I-112
and request that IBM bring back the MATLAB interface?

I realise that lots of people use gurobi, and others use TOMLAB (a
matlab interface) to access CPLEX, but we should not depend too much
on fewer solvers and CPLEX is still a very powerful solver.

Make your voice heard. Please go to this page and request the
restoration of the MATLAB interface...
https://ibm-data-and-ai.ideas.aha.io/ideas/CPLEX-I-112

Regards,

Ronan

zahra fatahi

unread,
Jun 29, 2021, 4:07:13 AM6/29/21
to cobra-...@googlegroups.com
Dear Ronan,

Thank you for your help, I did debug the cobraupdate. But for downloading the CPLEX it navigates me to this page 
which needs Cite number and business justification that I do not access.

Best regards,
Zara



Ronan M.T. Fleming

unread,
Jun 29, 2021, 4:14:32 AM6/29/21
to COBRA Toolbox, From: ALEX FLEISCHER via IBM Community
Reply all
Reply to author
Forward
0 new messages