[R] constrain min and max of output

Eliano eliano.m.marques at gmail.com
Tue Oct 25 15:09:28 CEST 2011


Hi There,

I have a similar problem.

I have a function that i want to maximize.

lets say: (x-2)^2+(y-4)^2 and i want to constraint that maximization to
x+y<=5

I can program that constraints in R.

Do you have any suggestion?

Regards

--
View this message in context: http://r.789695.n4.nabble.com/constrain-min-and-max-of-output-tp3936635p3936688.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list