[R] lpSolve API - add Vs set

Kohleth Chia kohleth at gmail.com
Thu Jan 28 10:54:13 CET 2010


Hi,

Using the package lpSolve API, I need to build a 2000*100000 constraint matrix.
I wonder which method is faster:

(a) 
model = make.lp(0,0)
add.constraint(model,	...)

or

(b)
model = make.lp(2000,100000)
set.constraint(model,...)

Thanks
------------
KC


More information about the R-help mailing list