[R] question about lpSolve package

David Winsemius dwinsemius at comcast.net
Tue Jul 6 21:53:26 CEST 2010


On Jul 6, 2010, at 3:32 PM, Xiaoxi Gao wrote:

>
> Hello R users,
>
> I have two quick questions while using "lpSolve" package for linear  
> programming. (1) the result contains both characters and numbers,  
> e.g., Success: the objective function is 40.5, but I only need the  
> number, can I only store the number?

?lp
?lp.object   # or just use str()

> (2) How to set boundaries for variables? e.g., all variable are  
> positive.

It appears you need to take time to re-read the help page and work  
through the examples.

>
-- 

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list