Perhaps I should clarify that when I use sample code from the lp help function, I can paste it and run it in my windows-based R with no problems. My question is why the same code won't work on a linux system.
Thanks, Byran Smucker On Wed, 11 Jul 2007 12:00:09 +0200 r-help@stat.math.ethz.ch wrote: Message: 56 Date: Tue, 10 Jul 2007 19:07:10 -0400 From: "Byran Smucker" <[EMAIL PROTECTED]> Subject: [R] error using lp function in linux To: r-help@stat.math.ethz.ch Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain Hello all, I would like to use the lp function (lpSolve package) on a linux system. Using sample code from the lp function help, I can solve the linear program with no errors or problems. However, when I copy the exact same code to R in linux (after loading the lpSolve package), I get the following error: *** caught segfault *** address 0x3, cause 'memory not mapped' Traceback: 1: .C("lpslink", direction = as.integer(direction), x.count = as.integer(x.count), objective = as.double(objective), const.count = as.integer(const.count), constraints = as.double(constraints), int.count = as.integer(int.count), int.vec = as.integer(int.vec), objval = as.double(objval), solution = as.double(solution), presolve = as.integer(presolve), compute.sens = as.integer(compute.sens), sens.coef.from = as.double(sens.coef.from), sens.coef.to = as.double(sens.coef.to), duals = as.double(duals), duals.from = as.double(duals.from), duals.to = as.double(duals.to), status = as.integer(status), PACKAGE = "lpSolve") 2: lp("max", f.obj, f.con, f.dir, f.rhs) Possible actions: 1: abort (with core dump, if enabled) 2: normal R exit 3: exit R without saving workspace 4: exit R saving workspace Does this function not work with linux or is there some other explanation?Thanks, Byran Smucker Graduate Student, Dept. of Statistics Penn State University 301 Thomas Building [[alternative HTML version deleted]] ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.