opencobra / cobratoolbox

The COnstraint-Based Reconstruction and Analysis Toolbox. Documentation:
https://opencobra.github.io/cobratoolbox
Other
253 stars 318 forks source link

CPLEX V12.8.0 not working after COBRA update #1699

Open michaelahenson opened 3 years ago

michaelahenson commented 3 years ago

After recently updating COBRA with initCobraToolbox(true), CPLEX is no longer working properly.

solverOK=changeCobraSolver('ibm_cplex','LP') changeCobraSolver: Solver ibm_cplex is installed but not working properly.

solverOK =

logical

0

Is my best option to reinstall the IBM ILOG CPLEX Optimization Studio or is there some easier fix that might work?

Mike Henson

I hereby confirm that I have:

(Note: You may replace [ ] with [X] to check the box)

rmtfleming commented 3 years ago

Hi Michael, I cannot reproduce that issue on a linux machine with the latest version, as I get:

solverOK=changeCobraSolver('ibm_cplex','LP')

changeCobraSolver: IBM ILOG CPLEX interface added to MATLAB path. ibm_cplex (version 1210) is compatible and fully tested with MATLAB R2019a on your operating system.

solverOK =

logical

1

If the issue persists, report with generateSystemConfigReport

Regards,

Ronan

On Mon, 28 Dec 2020 at 16:04, michaelahenson notifications@github.com wrote:

After recently updating COBRA with initCobraToolbox(true), CPLEX is no longer working properly.

solverOK=changeCobraSolver('ibm_cplex','LP') changeCobraSolver: Solver ibm_cplex is installed but not working properly.

solverOK =

logical

0

Is my best option to reinstall the IBM ILOG CPLEX Optimization Studio or is there some easier fix that might work?

Mike Henson

I hereby confirm that I have:

  • Tried to solve the issue on my own
  • Retried to run my code with the latest version of The COBRA Toolbox
  • Checked that a similar issue has not already been opened

(Note: You may replace [ ] with [X] to check the box)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/opencobra/cobratoolbox/issues/1699, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQMEOT3WJ2WZ2UVCEY7DKLSXCUCXANCNFSM4VMGBIDQ .

--

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 & Adjunct Lecturer, 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.)

michaelahenson commented 3 years ago

COBRAconfigReport.log

generateSystemConfigReport

---------------------------------- SYSTEM CONFIGURATION REPORT ----------------------------------

  _____   _____   _____   _____     _____     |
 /  ___| /  _  \ |  _  \ |  _  \   / ___ \    |   COnstraint-Based Reconstruction and Analysis
 | |     | | | | | |_| | | |_| |  | |___| |   |   The COBRA Toolbox - 2021
 | |     | | | | |  _  { |  _  /  |  ___  |   |
 | |___  | |_| | | |_| | | | \ \  | |   | |   |   Documentation:
 \_____| \_____/ |_____/ |_|  \_\ |_|   |_|   |   http://opencobra.github.io/cobratoolbox
                                              | 

Checking if git is installed ... Done (version: 2.17.1). Checking if the repository is tracked using git ... Done. Checking if curl is installed ... Done. Checking if remote can be reached ... Done. Initializing and updating submodules (this may take a while)... Done. Adding all the files of The COBRA Toolbox ... Done. Define CB map output... set to svg. TranslateSBML is installed and working properly. Configuring solver environment variables ...

  • [*---] ILOG_CPLEX_PATH: C:\Program Files\ibm\ILOG\CPLEX_Studio128\cplex\matlab\x64_win64
  • [*---] GUROBI_PATH: C:\Program Files (x86)\gurobi800\win64\matlab
  • [----] TOMLAB_PATH: --> set this path manually after installing the solver ( see instructions )
  • [*---] MOSEK_PATH: C:\Program Files\Mosek\8\ Done. Checking available solvers and solver interfaces ... Done. Setting default solvers ... Done. Saving the MATLAB path ... Done.
  • The MATLAB path was saved in the default location.

Summary of available solvers and solver interfaces

                Support           LP     MILP      QP    MIQP     NLP
----------------------------------------------------------------------
gurobi          active              1       1       1       1       -
ibm_cplex       active              1       1       1       1       -
tomlab_cplex    active              0       0       0       0       -
glpk            active              1       1       -       -       -
mosek           active              1       -       1       -       -
matlab          active              1       -       -       -       1
pdco            active              1       -       1       -       -
quadMinos       active              0       -       -       -       -
dqqMinos        active              0       -       0       -       -
cplex_direct    active              0       0       0       -       -
cplexlp         active              1       -       -       -       -
qpng            passive             -       -       1       -       -
tomlab_snopt    passive             -       -       -       -       0
lp_solve        legacy              1       -       -       -       -
----------------------------------------------------------------------
Total           -                   8       3       5       2       1

MATLAB Version: 9.3.0.713579 (R2017b) MATLAB License Number: 40702063 Operating System: Microsoft Windows 10 Pro Version 10.0 (Build 19041) Java Version: Java 1.8.0_121-b13 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode

MATLAB Version 9.3 (R2017b) Simulink Version 9.0 (R2017b) Bioinformatics Toolbox Version 4.9 (R2017b) Control System Toolbox Version 10.3 (R2017b) DSP System Toolbox Version 9.5 (R2017b) Data Acquisition Toolbox Version 3.12 (R2017b) Image Processing Toolbox Version 10.1 (R2017b) Instrument Control Toolbox Version 3.12 (R2017b) M2HTML Toolbox - A Documentation Generator for ... Version 1.5
Matrix Computation Toolbox Version 1.2
Optimization Toolbox Version 8.0 (R2017b) Parallel Computing Toolbox Version 6.11 (R2017b) Signal Processing Toolbox Version 7.5 (R2017b) Simulink Control Design Version 5.0 (R2017b) Statistics and Machine Learning Toolbox Version 11.2 (R2017b) Symbolic Math Toolbox Version 8.0 (R2017b)

Default shell :
Version of shell : '--version' is not recognized as an internal or external command, operable program or batch file. Architecture : PCWIN64 MATLAB folder : C:\Program Files\MATLAB\R2017b COBRA Toolbox root : C:\Users\Mike\cobratoolbox git version : git version 2.17.1.windows.2 curl version : curl 7.55.1 (Windows) CBT_LP_SOLVER : gurobi CBT_MILP_SOLVER : gurobi CBT_QP_SOLVER : gurobi CBT_MIQP_SOLVER : gurobi CBT_NLP_SOLVER : matlab GUROBI_PATH : C:\Program Files (x86)\gurobi800\win64\matlab ILOG_CPLEX_PATH : C:\Program Files\ibm\ILOG\CPLEX_Studio128\cplex\matlab\x64_win64 TOMLAB_PATH :
MOSEK_PATH : C:\Program Files\Mosek\8\

----------------------------------- END OF CONFIGURATION REPORT -----------------------------------

Please send the report located in C:\Users\Mike\cobratoolbox\COBRAconfigReport.log to the developers or post it in the forum:

AswathyRaghu commented 3 years ago

Were you able to resolve this? I have the same issue in linux.

solverName = 'ibm_cplex'; solverType = 'LP'; printLevel = 3; validationLevel = 2; [solverOK, solverInstalled] = changeCobraSolver(solverName, solverType, printLevel, validationLevel)

changeCobraSolver: IBM ILOG CPLEX interface added to MATLAB path. ibm_cplex (version 128) is compatible and fully tested with MATLAB R2018b on your operating system. CPLEX Error 1003: Bad argument to Callable Library routine.

solverOK =

logical

0

solverInstalled =

logical

1

changeCobraSolver('ibm_cplex','all') changeCobraSolver: Solver ibm_cplex is installed but not working properly.

ans =

logical

0 COBRAconfigReport.log

I already tried re-installing both MATLAB and ibm_cplex. It would be very helpful if you would let me know how this was resolved. Thank you.

Aswathy

rmtfleming commented 3 years ago

Hi Aswathy,

this part seems ok ibm_cplex (version 128) is compatible and fully tested with MATLAB R2018b on your operating system. though on my linux machine it reads ibm_cplex (version 1210) is compatible and fully tested with MATLAB R2019a on your operating system.

What line exactly is this error coming from? CPLEX Error 1003: Bad argument to Callable Library routine.

It seems like a bad argument was passed to CPLEX https://www.ibm.com/support/knowledgecenter/SS9UKU_12.8.0/com.ibm.cplex.zos.help/refcallablelibrary/macros/CPXERR_BAD_ARGUMENT.html

Have you searched IBM-CPLEX for matlab interface support? https://www.ibm.com/support/home/

Can you update to cplex version 1210?

Regards,

Ronan

On Wed, 10 Feb 2021 at 16:42, AswathyRaghu notifications@github.com wrote:

Were you able to resolve this? I have the same issue in linux.

solverName = 'ibm_cplex'; solverType = 'LP'; printLevel = 3; validationLevel = 2; [solverOK, solverInstalled] = changeCobraSolver(solverName, solverType, printLevel, validationLevel)

changeCobraSolver: IBM ILOG CPLEX interface added to MATLAB path. ibm_cplex (version 128) is compatible and fully tested with MATLAB R2018b on your operating system. CPLEX Error 1003: Bad argument to Callable Library routine.

solverOK =

logical

0

solverInstalled =

logical

1

changeCobraSolver('ibm_cplex','all') changeCobraSolver: Solver ibm_cplex is installed but not working properly.

ans =

logical

0 COBRAconfigReport.log

I already tried re-installing both MATLAB and ibm_cplex. It would be very helpful if you would let me know how this was resolved. Thank you.

Aswathy

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

--

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 & Senior Lecturer, 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.)

AswathyRaghu commented 3 years ago

Hello Prof. Fleming Thank you very much for the inputs. I updated to cplex 1210 and now it is working fine. :)

Sincerely Aswathy