R: In lpSolveAPI, how do I change the objective function from minimization to maximization?

后端 未结 0 665
深忆病人
深忆病人 2021-01-30 01:34
library(lpSolveAPI)
my.lp <- make.lp(nrow = 3, ncol = 2)
set.column(my.lp, 1, c(1, 1, 2))
set.column(my.lp, 2, c(3, 1, 0))
set.objfn(my.lp, c(1, 0))
set.constr.type(m         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题