- #1
the_dane
- 30
- 0
I try to find out how to minimize functions i R by using nlm function:
> f<-function(x,y){x^2+y^2+10-5*x-y}
> nlm(f,0.1,0.1)
That only gives me an estimate for x. How would write the code to get x and y?
> f<-function(x,y){x^2+y^2+10-5*x-y}
> nlm(f,0.1,0.1)
That only gives me an estimate for x. How would write the code to get x and y?