gurobi installation in matlab/mac

1,533 views
Skip to first unread message

pj

unread,
May 10, 2011, 9:44:51 AM5/10/11
to COBRA Toolbox

Hey people,

Im writing because Im trying to install gurobi Version 4.5 to use as
solver in COBRA. Im using MATLAB 7.11.0 (R2010b) 64-bit in a Macbook
pro using Snow Leopard version 10.6.7.

I have followed the instructions in gurobi web page and downloaded a
file gurobi4.5.0_mac64 and install it.

I also followed the instruction of the COBRA discuss link

http://groups.google.com/group/cobra-toolbox/browse_thread/thread/21a6b75bdc2ca03f

Gurobi was installed in /Library/gurobi450/mac64/ ..., but I was
expecting to view a gurobi_mex.c file there so I could set Matlab to
that mex, as discussed in the above link. However, there is no
gurobi_mex file so I am a bit lost.

Should I download linux gurobi source and try to install it from
command line since both are unix systems?

Thanks in advance,

Pj

brandon...@gmail.com

unread,
May 11, 2011, 9:41:13 AM5/11/11
to COBRA Toolbox
You'll need to install the mex separately:
http://www.convexoptimization.com/wikimization/index.php/Gurobi_Mex:_A_MATLAB_interface_for_Gurobi

Also I haven't tested 4.5 with the mex interface (though I was meaning
to do so soon), so if you have problems, try Gurobi 4.0.


On May 10, 9:44 am, pj <pjdia...@gmail.com> wrote:
> Hey people,
>
> Im writing because Im trying to install gurobi Version 4.5 to use as
> solver in COBRA. Im using MATLAB 7.11.0 (R2010b) 64-bit in a Macbook
> pro using Snow Leopard version 10.6.7.
>
> I have followed the instructions in gurobi web page and downloaded a
> file gurobi4.5.0_mac64 and install it.
>
> I also followed the instruction of the COBRA discuss link
>
> http://groups.google.com/group/cobra-toolbox/browse_thread/thread/21a...

pj

unread,
May 13, 2011, 12:50:52 PM5/13/11
to COBRA Toolbox
Many thanks Brandon for your reply, I missed the fact there was a
separated file to be downloaded (the gurobi_mex.c).

Tried to install gurobi_mex_v1.50 and gurobi 4.5 with the following
command:

mex -O -I"/Library/gurobi450/mac64/include" "/Users/pj/Documents/
MATLAB/gurobi_mex_v1.50/gurobi_mex.c" -L"/Library/gurobi450/mac64/lib"
-lgurobi45 -lut -largeArrayDims

and it has install correctly.

>> initCobraToolbox
LP solver set to gurobi successful
MILP solver set to gurobi successful
Warning: QP solver CPLEX through Tomlab not usable: tomRun.m not in
Matlab path
> In changeCobraSolver at 181
In initCobraToolbox at 65
Warning: qpng solver has not been fully tested - results may not be
correct
> In changeCobraSolver at 191
In initCobraToolbox at 65
QP solver set to qpng successful
Warning: MIQP solver CPLEX through Tomlab not usable: tomRun.m not in
Matlab path
> In changeCobraSolver at 220
In initCobraToolbox at 76
MIQP solver set failed
CB map output set to svg successful

Just a question now. Im new in COBRA, what functions will I be missing
by not having installed a MIQP solver?

Many thanks in advance,

Pj




On May 11, 2:41 pm, "Brandon.Bar...@gmail.com"
<brandon.bar...@gmail.com> wrote:
> You'll need to install the mex separately:http://www.convexoptimization.com/wikimization/index.php/Gurobi_Mex:_...

Ronan Fleming

unread,
May 18, 2011, 8:36:02 AM5/18/11
to cobra-...@googlegroups.com
Hi PJ,
most people dont use all types of solvers simultaneously for their
COBRA work. Dont worry about it until you might find you do actually
need it.
Ronan

--
Mr. Ronan MT Fleming B.V.M.S. Dip. Math. Ph.D.
-----------------------------------------------------------------
Research Scientist,
Science Institute & Center for Systems Biology,
University of Iceland.
http://systemsbiology.hi.is/
http://www.hi.is/~rfleming
Ph:  +354 618 6245
-----------------------------------------------------------------

Reply all
Reply to author
Forward
0 new messages