File: newuoa.R

package info (click to toggle)
r-cran-minqa 1.2.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 324 kB
  • sloc: fortran: 3,530; cpp: 205; makefile: 2
file content (10 lines) | stat: -rw-r--r-- 253 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
library(minqa)

maxfn <- function(x)
    10 - (crossprod(x, seq_along(x)))^2
negmaxfn <- function(x) -maxfn(x)

(ans.mx <- newuoa(rep(pi, 4), negmaxfn, control=list(iprint=1)))

(ans.mxf<-newuoa(rep(pi, 4), negmaxfn, control=list(iprint=1,maxfun=25)))