Skip to content
Prev 81170 / 398502 Next

help with apply, please

Try minizing 1'x subject to 1 >= x >= 0 and m'x >= 1 where m is your mtrx
and ' means transpose.  It seems to give an integer solution, 1 0 1,
with linear programming even in the absence of explicit integer
constraints:

library(lpSolve)
lp("min", rep(1,3), rbind(t(mtrx), diag(3)), rep(c(">=", "<="), 4:3),
rep(1,7))$solution
On 11/19/05, Adrian DUSA <adi at roda.ro> wrote: