findmaxval: Find Maximum Value

View source: R/utils.R

findmaxvalR Documentation

Find Maximum Value

Description

Searches the maximum of a function over a grid on a given interval or design space.

Usage

findmaxval(sens, design_space, grid.length)

Arguments

sens

A numeric function to evaluate (scalar argument for 1D, named numeric vector for multi-factor).

design_space

Numeric vector c(min, max) for single-factor models, or a named list list(x1 = c(min, max), ...) for multi-factor models.

grid.length

Number of grid points (1D) or LHS samples (multi-factor).

Value

The value of the maximum


optedr documentation built on June 23, 2026, 5:07 p.m.