Gurobi crashing on R 3.4

105 views
Skip to first unread message

Matt Strimas-Mackey

unread,
May 2, 2017, 4:35:55 PM5/2/17
to Gurobi Optimization
The Gurobi R package has recently started causing my R session to crash. This coincided with a recent update to R 3.4. Running this example:

library("gurobi")
model  <- list()
model$A      <- matrix(c(1, 2, 3, 1, 1, 0), nrow = 2, ncol=3, byrow=T)
model$obj    <- c(1, 1, 2)
model$sense  <- c("<=", ">=")
model$rhs    <- c(4, 1)
model$vtype  <- "B"
params <- list(Presolve=2, TimeLimit=100.0)
result <- gurobi(model, params)

Gives the following error:

 *** caught segfault ***
address 0x128, cause 'memory not mapped'

Traceback:
 1: .C("gurobi_R_solve", as.character(filename), as.integer(rows),     as.integer(cols), as.double(obj), as.integer(modelsense),   ...
 2: grb_solve(filename, rows, cols, obj, modelsense, modelname, objcon,     A_csc$beg, A_csc$ind, A_csc$val, sense, rhs, lb, ub, vtype,   ...
 3: gurobi_common(model, "", params)
 4: gurobi(model, params)

Anyone else experiencing this or have any ideas what's going on? Thanks!

Matt

Here's my R Session info, I'm running this on a Mac:

Session info ------------------------------------------------------------------
 setting  value                       
 version  R version 3.4.0 (2017-04-21)
 system   x86_64, darwin15.6.0        
 ui       AQUA                        
 language (EN)                        
 collate  en_US.UTF-8                 
 tz       America/New_York            
 date     2017-05-02                  

Packages ----------------------------------------------------------------------
 package  * version date       source        
 devtools * 1.12.0  2016-12-05 CRAN (R 3.4.0)
 digest     0.6.12  2017-01-27 CRAN (R 3.4.0)
 gurobi   * 7.0-2   2017-01-24 local         
 lattice    0.20-35 2017-03-25 CRAN (R 3.4.0)
 Matrix     1.2-10  2017-04-28 CRAN (R 3.4.0)
 memoise    1.1.0   2017-04-21 CRAN (R 3.4.0)
 slam     * 0.1-40  2016-12-01 CRAN (R 3.4.0)
 withr      1.0.2   2016-06-20 CRAN (R 3.4.0)

Renan Garcia

unread,
May 2, 2017, 4:37:08 PM5/2/17
to gur...@googlegroups.com
R 3.4 is not currently supported (see http://www.gurobi.com/products/supported-platforms). This will be fixed in the next release.

--

---
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.

Renan Garcia

unread,
Jul 18, 2017, 8:51:14 AM7/18/17
to Gurobi Optimization
Note the latest Gurobi release (v7.5.1) now supports R 3.4

To unsubscribe from this group and stop receiving emails from it, send an email to gurobi+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages