estbounds.check: Checks and updates the input in 'estbounds'

View source: R/estbounds.R

estbounds.checkR Documentation

Checks and updates the input in estbounds

Description

This function checks and updates the input from the user in the estbounds function. If there is any invalid input, the function will be terminated and error messages will be printed.

Usage

estbounds.check(data, lpmodel, kappa, norm, solver, estimate)

Arguments

data

An data frame or a matrix.

lpmodel

The lpmodel object.

kappa

The tuning parameter used in the second step of the two-step procedure for obtaining the bounds subject to the shape constraints. It can be any nonnegative number.

norm

The norm used in the optimization problem. It can be either a 1-norm or a 2-norm. See the details section of estbounds for a list of accepted strings.

solver

The name of the linear and quadratic programming solver that is used to obtain the solution to linear and quadratic programs. The solvers supported by this package are cplexAPI, gurobi, limSolve and Rcplex.

estimate

A boolean variable to indicate whether the bounds should be estimated or not.

Value

Returns the updated parameters and objects back to the function estbounds. The following information are updated:

  • data

  • lpmodel

  • solver

  • solver.name

  • norm

  • kappa


conroylau/lpinfer documentation built on Oct. 23, 2022, 9:21 a.m.