Skip to content
Back to formatted view

Raw Message

Message-ID: <1319548168778-3936688.post@n4.nabble.com>
Date: 2011-10-25T13:09:28Z
From: Eliano
Subject: constrain min and max of output
In-Reply-To: <4EA6AF98.8010604@uea.ac.uk>

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.