Learn R Programming

blackbox (version 1.0)

maximizeOK: Find maximum of predicted response surface

Description

Assuming that calcPredictorOK has been first run to produce a predictor of the response surface, this finds its constrained maximum in the convex envelope of the smoothed data.

Usage

maximizeOK(fitobject = blackbox.getOption("fitobject"), cleanResu = "")

Arguments

fitobject
Return object of calcPredictorOK.
cleanResu
A connection, or a character string naming a file for some nicely formated output. If "" (the default), print to the standard output connection.

Value

  • A list with element
  • parpredictor values maximizing the predicted response (in the parameter space used for Kriging)
  • valuemaximum of the predicted response
  • canonVPRepresentation of par in canonical parameter space
  • and possibly other elements (i) returned by an optimization function such as optim; (ii) values of additional transformed parameters; (iii) cryptic information whether maximization occurred at some boundary of the convex envelope.