fastFVA error- Cplex version can't be determined

179 views
Skip to first unread message

nb1

unread,
Jan 18, 2018, 4:40:30 PM1/18/18
to COBRA Toolbox
Hi,

I am using Cobra on MATLAB 2017b & Windows 10 64 bit machine. 

I ran this command

[a,b] = fastFVA(model)

I got the following error:

>> [a,b] = fastFVA(model)
 > The exact version of CPLEX could not be determined
Error using fastFVA>checkFastFVAbin (line 723)
Official binaries are only available for CPLEX version Git-2. You have installed version . Please run: >>
generateMexFastFVA() in order to generate a new binary file.

Error in fastFVA (line 130)
checkFastFVAbin(cplexVersion);


Attaching the system configuration report herewith. What might be the reason? I have added the path of Cplex in environment variables as well as Matlab. Still it shows error. 

What might be the reason? thanks.


COBRAconfigReport.log

Thomas Pfau

unread,
Jan 19, 2018, 12:35:02 AM1/19/18
to cobra-...@googlegroups.com
Hello,

Have you tried to follow the suggestion reported by the error message?
i.e. have you run generateMexFastFVA() ?

Best
Thomas
> --
>
> ---
>

--
Université du Luxembourg
Faculté des Sciences, de la Technologie et de la Communication
Campus Belval, Biotech II 115
6 avenue du Swing
L-4367 Belvaux
Tel: (+352) 46 66 44 5309
Email: thoma...@uni.lu

Laurent Heirendt

unread,
Jan 19, 2018, 2:19:40 AM1/19/18
to COBRA Toolbox
Hi,

From your system configuration report, it can be seen that you do not have CPLEX installed. May you follow the installation instructions here: https://opencobra.github.io/cobratoolbox/stable/installation.html#ibm-ilog-cplex ?

Best,

Laurent

Nikhil Bellarykar

unread,
Jan 19, 2018, 3:02:35 PM1/19/18
to cobra-...@googlegroups.com
Dear Laurent,

I have installed cplex... Downloaded the exe, appended it in path variable..Still no success. What might be the reason?

--

---
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-toolbox+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Laurent Heirendt

unread,
Jan 23, 2018, 8:37:48 AM1/23/18
to COBRA Toolbox
Hi,

Did you install CPLEX by running the .exe file? It is not enough to only add the .exe file to the MATLAB path (actually, this is not even necessary).

May you let me know what the CPLEX installation directory is?

Best,

Laurent

Nikhil Bellarykar

unread,
Jan 25, 2018, 1:11:02 AM1/25/18
to cobra-...@googlegroups.com
Dear Laurent, the installation directory of CPLEX is as follows.

C:\Program Files\IBM\ILOG\CPLEX_Studio_Community128\cplex\matlab\x64_win64

Pl let me know if any further info is required too. 

Thanks,

Nikhil.

Yours Sincerely,

Nikhil Bellarykar.

Thomas Pfau

unread,
Jan 25, 2018, 2:09:37 AM1/25/18
to cobra-...@googlegroups.com

Hi Nikhil,

One issue is that you are using the community edition of cplex, which has slightly different installation folders to the full version and is thus not automatically detected by the toolbox.

Could you create an environment variable 'ILOG_CPLEX_PATH' which points to your CPLEX installation?
The simplest way to do this is to define it only for matlab in a startup.m file.
To do so, navigate to a folder that is on your matlabpath, create a startup.m script file with the following content:

setenv('ILOG_CPLEX_PATH','C:\Program Files\IBM\ILOG\CPLEX_Studio_Community128\cplex\matlab\x64_win64')

--------------
restart matlab (the startup should be executed) and run initCobraToolbox again before trying fastFVA.

However, as you have the Community version installed, be aware, that you will be unable to run FVA on any model with more than 1000 reactions or metabolites.

Best,

Thomas
To unsubscribe from this group and stop receiving emails from it, send an email to cobra-toolbo...@googlegroups.com.

Nikhil Bellarykar

unread,
Jan 27, 2018, 9:24:18 AM1/27/18
to cobra-...@googlegroups.com
Will do so, thanks Thomas. But is there any way to run FVA for a model with more than 1000 reactions then?

Yours Sincerely,

Nikhil Bellarykar.

To unsubscribe from this group and stop receiving emails from it, send an email to cobra-toolbox+unsubscribe@googlegroups.com.

-- 
Université du Luxembourg
Faculté des Sciences, de la Technologie et de la Communication
Campus Belval, Biotech II 115
6 avenue du Swing
L-4367 Belvaux
Tel: (+352) 46 66 44 5309
Email: thoma...@uni.lu

Thomas Pfau

unread,
Jan 28, 2018, 9:22:43 AM1/28/18
to cobra-...@googlegroups.com

Hello Nikhil,

Well the simplest option is probably just using the fluxVariability function instead of fastFVA. fastFVA is nothing different except that it is designed particularily for CPLEX and comes with precompiled binaries using warm starts which speeds up the process.

Best

Thomas

To unsubscribe from this group and stop receiving emails from it, send an email to cobra-toolbo...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

-- 
Université du Luxembourg
Faculté des Sciences, de la Technologie et de la Communication
Campus Belval, Biotech II 423
6 avenue du Swing
L-4367 Belvaux
Tel: (+352) 46 66 44 5309
Email: thoma...@uni.lu 

Ines Thiele

unread,
Jan 28, 2018, 9:25:24 AM1/28/18
to cobra-...@googlegroups.com
You can get the free academic license from IBM for Ilog Clepx. Then you use fastFVA which is much faster.

Ines

Sent from my iPhone

Nikhil Bellarykar

unread,
Jan 29, 2018, 1:37:22 AM1/29/18
to cobra-...@googlegroups.com
Thanks Thomas and Ines for the clarification, much appreciated.

Yours Sincerely,

Nikhil Bellarykar.

-- 
Université du Luxembourg
Faculté des Sciences, de la Technologie et de la Communication
Campus Belval, Biotech II 423
6 avenue du Swing
L-4367 Belvaux
Tel: (+352) 46 66 44 5309
Email: thoma...@uni.lu 

--

---
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-toolbox+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ronan M.T. Fleming

unread,
Jan 29, 2018, 4:18:08 PM1/29/18
to COBRA Toolbox
--
Mr. Ronan MT Fleming B.V.M.S. Dip. Math. Ph.D.
----------------------------------------------------------------------------
Senior research associate (EN) == Chercheur (FR),
Principal investigator,
Systems Biochemistry Group,
wwwen.uni.lu/lcsb/research/systems_biochemistry
Luxembourg Centre for Systems Biomedicine,
University of Luxembourg,
Campus Belval,
6, avenue du Swing,
L-4367 Belvaux.
&
National Centre of Excellence in Research on Parkinson’s disease
www.parkinson.lu
&
Adjunct Assistant Professor,
Division of Analytical Biosciences,
Leiden Academic Centre for Drug Research,
Faculty of Science,
University of Leiden.
http://analyticalbiosciences.leidenuniv.nl
----------------------------------------------------------------------------
Mobile:  +352 621 175 112
Office: +352 466 644 5528
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.)
Reply all
Reply to author
Forward
0 new messages