Hi.
I have been trying to solve an NLP problem using the matlab solver.
When initCobraToolbox is executed, the matlab NLP solver is reported to be active and installed.
Output of initCobraToolbox:
Support LP MILP QP MIQP NLP
--------------------------------------------------------------------------------------
gurobi active 1 1 1 1 -
ibm_cplex active 1 1 1 1 -
tomlab_cplex active 1 1 1 1 -
glpk active 1 1 - - -
mosek active 0 - 0 - -
matlab active 1 - - - 1
pdco active 1 - 1 - -
quadMinos active 0 - - - -
dqqMinos active 0 - 0 - -
cplex_direct active 1 1 1 - -
cplexlp active 1 - - - -
qpng passive - - 1 - -
tomlab_snopt passive - - - - 1
lp_solve legacy 1 - - - -
--------------------------------------------------------------------------------------
Total - 9 5 6 3 2
+ Legend: - = not applicable, 0 = solver not compatible or not installed, 1 = solver installed.
> You can solve LP problems using: 'gurobi' - 'ibm_cplex' - 'glpk' - 'pdco' - 'cplexlp'
> You can solve MILP problems using: 'gurobi' - 'ibm_cplex' - 'glpk'
> You can solve QP problems using: 'gurobi' - 'ibm_cplex' - 'pdco'
> You can solve MIQP problems using: 'gurobi' - 'ibm_cplex'
> You can solve NLP problems using:
> Checking for available updates ...
> The COBRA Toolbox is up-to-date.
However the matlab solver is not recognised. I tried to change the cobra solver to matlab using changeCobrasolver to confirm if it was a function problem or an output rendering issue. The result is as follows:
>> changeCobraSolver('matlab', 'NLP')
> changeCobraSolver: Solver matlab is installed but not working properly.
ans =
logical
0
I checked if the fmincon function was working using a few sample functions and found it to be working perfectly.
I tried searching for a solution to this issue but couldn’t find any. Any help in this regard would be greatly appreciated.
Thanks and regards,
Sowmya
Dear Sir,
Thank you for the guidance. I tried debugging it using the verbose option and it worked.
The changes made in order to fix the problem (in COBRA v3 and MATLAB 2020a) are as follows:
Thanks and regards,
Sowmya Manojna
To view this discussion on the web visit https://groups.google.com/d/msgid/cobra-toolbox/CAOivGYvRa3jzcSAMN%2B_Ri27GuYLzKGedYfOsS4p10uMg9H6xyQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cobra-toolbox/CAKwRkyeLxzJxhjcSCy%3DhYuT42A86zH2NeVOxfciLXdAq9ZkqOQ%40mail.gmail.com.