checkLowerSmallerThanUpper: #' Check That Lower and Upper are not Equal #' #' If any...

View source: R/initialInputCheck.R

checkLowerSmallerThanUpperR Documentation

#' Check That Lower and Upper are not Equal #' #' If any entries in lower and upper are equal, the parameter has no range and cant be optimized. #' In that case, an error is generated. #' #' @param lower is a vector that defines the lower boundary of search space. This determines also the dimensionality of the problem. #' @param upper is a vector that defines the upper boundary of search space. #' #' @keywords internal checkLowerNotEqualsUpper <- function(lower,upper) if(any(lower == upper)) stop("SPOT Configuration Error: Entries in 'lower' and 'upper' should not be equal") Check That Lower is smaller than Upper

Description

Check if lower actually contains smaller values than upper. Otherwise a warning is generated.

Usage

checkLowerSmallerThanUpper(lower, upper)

Arguments

lower

is a vector that defines the lower boundary of search space. This determines also the dimensionality of the problem.

upper

is a vector that defines the upper boundary of search space.


SPOT documentation built on June 26, 2022, 1:06 a.m.