getMaxMinMC: Coordinate profile extrema with MC

Description Usage Arguments Value Author(s)

View source: R/getMaxNumOpt.R

Description

Compute coordinate profile extrema with MC

Usage

1
getMaxMinMC(x, f, fprime, coord, d, options = NULL)

Arguments

x

one dimensional point where the function is to be evaluated

f

function to be optimized (takes a vector y of dimension d and returns a real number)

fprime

derivative of f (same format)

coord

integer selecting the dimension that is fixed, the other ones are optimized over

d

dimension of the input for f

options

a list containing the options to be passed to the MC optimizer:

  • par:contains the starting point (a point in dimension d-1)

  • numMCsamples: number of MC samples

  • randstring that chooses the type of randomness in MC: "unif" (uniform in [lower,upper]), "norm" (independent normal with mean 0 and variance 1)

  • lower: the lower bounds for the optimization domain (see optim for details)

  • upper:the upper bounds for the optimization domain (see optim for details)

Value

a real value corresponding to max_{x_1,…, x_{coord-1},x_{coord+1}, …, x_d} f(x_1,…,x_d)

Author(s)

Dario Azzimonti


profExtrema documentation built on March 22, 2020, 1:07 a.m.