Learn R Programming

optimbase (version 1.0-10)

Bounds & constraints: Query for Bounds and Constraints

Description

optimbase.hasbounds and optimbase.hascons query an optimization object and determine whether bounds and nonlinear constraints have been specified. Bounds are defined in the boundsmin and boundsmax elements of the optimization object. The number of nonlinear constraints is defined in the nbineqconst element.

optimbase.hasconstraints determine whether any bound or constraint has been specified.

Usage

optimbase.hasbounds(this = NULL)
  optimbase.hasnlcons(this = NULL)
  optimbase.hasconstraints(this = NULL)

Arguments

this

An optimization object.

Value

Return TRUE if bounds or constraints are found, FALSE otherwise.