[R] Increasing precision of rgenoud solutions

From: Paul Smith <phhs80_at_gmail.com>
Date: Wed, 09 May 2007 11:11:49 +0100

Dear All

I am using rgenoud to solve the following maximization problem:

myfunc <- function(x) {
  x1 <- x[1]
  x2 <- x[2]
  if (x1^2+x2^2 > 1)
  else x1+x2

genoud(myfunc, nvars=2,

How can one increase the precision of the solution

[1] 0.7072442 0.7069694


I have tried solution.tolerance but without a significant improvement.

Any ideas?

Thanks in advance,


R-help_at_stat.math.ethz.ch 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. Received on Wed 09 May 2007 - 10:22:22 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 10 May 2007 - 20:33:32 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.