Learn R Programming

optimbase (version 1.0-9)

optimbase.checkbounds: Check bounds.

Description

This function checks if the bounds defined in the optimization object are consistent (same number of minimal and maximal bounds as the number of variables, minimal bounds lower than maximal bounds) and puts an error message in the returned object if not.

Usage

optimbase.checkbounds(this = NULL)

Arguments

this
An optimization object.

Value

Return a list with the following list:
this
The optimization object.
isok
TRUE if the bounds are consistent, FALSE otherwise.
errmsg
An error message if the bounds are not consistent.