I try to find out how to minimize functions i R by using nlm function:(adsbygoogle = window.adsbygoogle || []).push({});

> 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?

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# How to use nlm function in R

Have something to add?

Draft saved
Draft deleted

**Physics Forums | Science Articles, Homework Help, Discussion**