This function solves the LP problem using the lpSolveAPI
package. The object generated by lpSetup
is not
compatible with the lpSolveAPI
functions. This function
adapts the object to solve the LP problem.
runLpSolveAPI(lpobj, modelsense)
list of matrices and vectors defining the linear programming problem.
input either 'max' or 'min' which sets the LP problem as a maximization or minimization problem.
a list of the output from lpSolveAPI
. This includes
the optimization status, the objective value, the solution
vector.