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. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.