Skip to content
Prev 308557 / 398506 Next

Optimization in R similar to MS Excel Solver

On 21-10-2012, at 13:37, Thomas Schu wrote:

            
Excellent idea. I hadn't actually tried limSolve.
Using the data for bmat and target from my previous post, limSolve provides an excellent alternative and is fast(est):
You don't need to define any special functions.

library(limSolve)
lsei(A=bmat,B=target,E=matrix(rep(1,4),ncol=4),F=1,G=matrix(rep(1,4),ncol=4),H=0)

Berend