Help you out with what? You have not provided a commented, minimal, self-contained, reproducible example as you were asked to provide in the bottom text of every note to r-help. Can you expect help with a problem only you know?
I *suspect* that you will need to define an objective function, such as the sum of the squares of deviations, so that the function is then single-valued. But that's only a guess, based on insufficient information. Charles Annis, P.E. [EMAIL PROTECTED] phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of kakul modani Sent: Saturday, April 26, 2008 10:40 AM To: r-help@r-project.org Subject: [R] How to use the optim function if the length of the objectivefunction is greater than 1? Hi, Please help me out with this.Im a new user of R. Thanks [[alternative HTML version deleted]] ______________________________________________ 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. ______________________________________________ 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.