Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Cplexsolver not defined. #22

Open
jialin3299 opened this issue Sep 16, 2022 · 3 comments
Open

ERROR: Cplexsolver not defined. #22

jialin3299 opened this issue Sep 16, 2022 · 3 comments

Comments

@jialin3299
Copy link

jialin3299 commented Sep 16, 2022

Hi, I encountered some problems when I tried to run the following file in julia. In solve.jl, An error is reported as: "Cplexsolver not defined". I found that this function has been deprecated in CPLEX v0.7.3. But I used COBRA v0.4.0 and CPLEX v0.9.4. I don't know how to solve this problem. Which version did you use at that time?
https://github.com/ThieleLab/CodeBase/blob/master/Analysis_Heinken_npj_Syst_Biol_Appl_2021/scripts/driver.jl

@jialin3299 jialin3299 changed the title ERROR: Cplexsolver not defined ERROR: Cplexsolver not defined. https://github.com/ThieleLab/CodeBase/blob/master/Analysis_Heinken_npj_Syst_Biol_Appl_2021/scripts/driver.jl Sep 16, 2022
@jialin3299 jialin3299 changed the title ERROR: Cplexsolver not defined. https://github.com/ThieleLab/CodeBase/blob/master/Analysis_Heinken_npj_Syst_Biol_Appl_2021/scripts/driver.jl ERROR: Cplexsolver not defined. Sep 16, 2022
@rmtfleming
Copy link

As @mtefagh is actively developing COBRA.jl, perhaps he could comment on this.

@mtefagh
Copy link

mtefagh commented Oct 21, 2022

Dear @jialin3299 and @rmtfleming,
One of my students @iManGHD who is actively developing COBRA.jl tried to fix this issue in opencobra/COBRA.jl#119, however, please let me know if the problem persists.
You just need to reinstall the package in any way you like to get the latest release: https://github.com/opencobra/COBRA.jl/releases/tag/v0.4.2

@jialin3299
Copy link
Author

Dear @jialin3299 and @rmtfleming, One of my students @iManGHD who is actively developing COBRA.jl tried to fix this issue in opencobra/COBRA.jl#119, however, please let me know if the problem persists. You just need to reinstall the package in any way you like to get the latest release: https://github.com/opencobra/COBRA.jl/releases/tag/v0.4.2

I'm very sorry that I didn't see the news in time. At that time, I used Julia version 1.7.3 to reproduce the content of calculating metabolic flux in the article, and then found that this version was incompatible with some packages in the driver.jl script. I had no foundation in code, and I didn't know how to solve this problem at that time. Then I installed Julia version 0.6.4, which was consistent with the literature, and the code is still running until now. Flux calculation of metabolic model is really a time-consuming thing.
Thank you very much for helping me solve the problem enthusiastically. After that, I will try to calculate metabolic flux with the latest version of COBRA.jl Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants