This function determines if all elements of a point estimate are within the defined bounds. In the case one or more parameter estimates are not, the function projects those to their corresponding bounds.
optimbase.proj2bnds(this = NULL, x = NULL)
An optimization object.
A point estimate.
Return a list with the following elements:
The optimization object.
A vector of updated paremeter estimes. The ith element of the vector is:
x[i]
if this$boundsmin[i]
< x[i]
<
this$boundsmax[i],
this$boundsmin[i]
if x[i] <= this$boundsmin[i],
this$boundsmax[i]
if this$boundsmax[i]
<= x[i].