Linear integer program in R with lpSolve

In the previous post ( I demonstrated how a simple linear optimization problem can be modelled and solved using the lpSolve package in R. In this post I want to add the topic of modelling integer variables. In the previous post we maximized objective function 2x + 3y, with the constraint that x + y […]