Is it possible to run Gurobi on Raspberry pi?

960 views
Skip to first unread message

Hanzel Grillo Espinoza

unread,
Mar 27, 2014, 5:19:03 AM3/27/14
to gur...@googlegroups.com
Hi every one,
I'm thinking in an application for quality control running on raspberry and written in python, but in some steps it must use gurobi to find some variables values.
I have tried to install gurobi in my raspberry, but I can´t do it.
Its that possible?
does any one knows how to do it?

Cheers!!

Greg Glockner

unread,
Mar 27, 2014, 9:03:39 AM3/27/14
to gur...@googlegroups.com
> I have tried to install gurobi in my raspberry, but I can´t do it.
> Its that possible?

No: Raspberry Pi is based on ARM, which is incompatible with Gurobi libraries.

Stuart Mitchell

unread,
Mar 27, 2014, 5:11:58 PM3/27/14
to gur...@googlegroups.com
you can try compiling glpk or cbc for arm.

Stu


--

---
You received this message because you are subscribed to the Google Groups "Gurobi Optimization" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gurobi+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Stuart Mitchell
PhD Engineering Science
Extraordinary Freelance Programmer and Optimisation Guru

Jakob Sch.

unread,
Mar 27, 2014, 6:07:58 PM3/27/14
to gur...@googlegroups.com
Hi Hanzel,

I would recommend SCIP (http://scip.zib.de/) as it is the fastest solver with source code available (but you should consider the license, they have a rather strange one). There are some python interfaces (for example https://code.google.com/p/python-zibopt/ or http://numberjack.ucc.ie/ see http://scip.zib.de/doc/html/INTERFACES.php). Also https://code.google.com/p/pulp-or/ is a nice python modelling language for MIPs and LPs...

Best regards,
Jakob

Hanzel Grillo Espinoza

unread,
Mar 28, 2014, 6:44:10 AM3/28/14
to gur...@googlegroups.com
Thanks a lot Greg, Stuart and Jakob. I will try to follow your recommendations!!

Hanzel Grillo Espinoza

unread,
Mar 28, 2014, 6:55:34 AM3/28/14
to gur...@googlegroups.com
Jakob
Are you sure SCIP is able to run in raspbian?
I reviewed the link you suggested and they talk about linux but not specificly of raspbian.



El jueves, 27 de marzo de 2014 10:19:03 UTC+1, Hanzel Grillo Espinoza escribió:

Jakob Sch.

unread,
Mar 29, 2014, 6:12:44 PM3/29/14
to gur...@googlegroups.com
Hi Hanzel,

My advice would be to ask the SCIP developers directly...

Best regards,
Jakob

Mike Steglich

unread,
Mar 29, 2014, 7:10:28 PM3/29/14
to gur...@googlegroups.com
Hi Hanzel,

It is possible to use Cbc and GLPK on Raspbian. You can download it as part of the CMPL Raspbian binary package. 


Mike

Hanzel Grillo Espinoza

unread,
Apr 10, 2014, 1:14:04 PM4/10/14
to gur...@googlegroups.com
Thanks a lot mike!


El jueves, 27 de marzo de 2014 10:19:03 UTC+1, Hanzel Grillo Espinoza escribió:

Thomas S.

unread,
Oct 15, 2014, 4:22:16 AM10/15/14
to gur...@googlegroups.com
Hello everybody,

I am also going to use a MIP solver on a Raspberry Pi and wondered if Gurobi now supports ARM processors or will Gurobi support ARM processors in one of the future releases?

Thanks in advance,
Thomas

Greg Glockner

unread,
Oct 15, 2014, 9:36:01 AM10/15/14
to gur...@googlegroups.com
> I am also going to use a MIP solver on a Raspberry Pi and wondered if Gurobi now supports ARM processors

No.


> or will Gurobi support ARM processors in one of the future releases?

We have no current plans to support ARM.

Mike Steglich

unread,
Oct 15, 2014, 10:13:47 AM10/15/14
to gur...@googlegroups.com
Hi Thomas,

You can use CBC or GLPK on Raspbian. You can download it as part of the CMPL Raspbian binary package. 


Cheers,

Mike

Vijay Hanagandi

unread,
Feb 5, 2015, 8:41:31 PM2/5/15
to gur...@googlegroups.com
Hi Hanzel:

Have you used any LP solver (SCIP/GLPK/CBC) for your application using the Raspberry Pi processor?
Would love to hear your experiences and learn from it.

thanks,
-Vijay

Cha L

unread,
Apr 27, 2015, 2:36:07 AM4/27/15
to gur...@googlegroups.com
Hi Vijay,

I just compiled SCIP 3.1.1 with SoPlex and ZIMPL on Raspberry Pi 2 (OS: Raspbian).

Before the compilation, I needed to install some packages:

sudo apt-get install bison flex libgmp-dev libreadline-dev libncurses5-dev


For ZIMPL, I have created a file zimpl-3.3.2/make/make.linux.armv7l.gnu.opt containing:

CPPFLAGS    +=    -DNDEBUG -DNO_MSHELL -D__NO_MATH_INLINES
CFLAGS        
=    -O3
LDFLAGS        
=    -lgmp -lm

ifeq
($(ZLIB),true)
LDFLAGS        
+=    -lz
endif

ifeq
($(LINK),shared)
LIBRARY        
=    $(LIBDIR)/lib$(LIBNAME).so
LIBLINK        
=    $(LIBDIR)/lib$(NAME).$(BASE).so
CFLAGS        
+=    -fPIC
AR        
=    gcc -shared -o # the trailing space is important
ARFLAGS        
=       $(LDFLAGS)
RANLIB        
=    true
endif

ifeq
($(LINK),static)
LDFLAGS        
+=    -static
endif

I ran make, but I obtained an error at the end (a zimpl library file not found).
I made a link to solve the problem:

ln zimpl-3.3.2/lib/libzimpl.linux.armv7l.gnu.opt.a zimpl-3.3.2/lib/libzimpl.linux.arm.gnu.opt.a

I ran make again, then it worked.
Currently, I have seen no problem during the execution.

Best regards
Reply all
Reply to author
Forward
0 new messages