optimbase.proj2bnds: Projection of Point Estimate to Bounds

Description Usage Arguments Value Author(s)

View source: R/optimbase.proj2bnds.R

Description

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.

Usage

1

Arguments

this

An optimization object.

x

A point estimate.

Value

Return a list with the following elements:

this

The optimization object.

p

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].

Author(s)

Author of Scilab optimbase module: Michael Baudin (INRIA - Digiteo)

Author of R adaptation: Sebastien Bihorel (sb.pmlab@gmail.com)


optimbase documentation built on May 1, 2019, 8:04 p.m.