Learn R Programming

ROI (version 0.2-1)

F_objective: General (Nonlinear) Objective Function

Description

General objective function $f(x)$to be optimized.

Usage

F_objective(F, n, G = NULL, names = NULL)
"terms"(x, ...)
as.F_objective(x)
"variable.names"(object, ...)

Arguments

F
an R "function" taking a numeric vector x of length $n$ as argument.
n
the number of objective variables.
G
an R "function" returning the gradient at x.
names
an optional character vector giving the names of x.
x
an R object.
...
further arguments passed to or from other methods
object
an R object.

Value

an object of class "F_objective" which inherits from "objective".