我相信我在LimSolve包中发现了一个错误。运行下面的代码时,该过程导致我的R应用程序(64位Windows; R版本2.13.1(2011-07-08))崩溃而没有警告或错误。重现错误的代码如下:
所需的130 kb .rda文件是here:
load( "limSolveTest.rda" )
library( lpSolve )
optimResultlpSolve = lp( direction = "min" ,
objective.in = g_ ,
const.mat = Aeq_ ,
const.dir = rep( "=" , nrow( Aeq_ ) ) ,
const.rhs = beq_ ,
transpose.constraints = FALSE
) # Function should raise an error
# Passes if transpose.constraints = TRUE