"motbf"
Defines an object of class "motbf"
and other basic functions for manipulating
"motbf"
objects.
motbf(x = 0)# S3 method for motbf
print(x, ...)
# S3 method for motbf
as.character(x, ...)
# S3 method for motbf
as.list(x, ...)
is.motbf(x, class = "motbf")
Preferably, a list containing an 'mte'
or 'mop'
univariate expression
and other posibles elements like a "numeric"
vector with the domain of the variable,
the number of iterations needed to solve the optimization problem, among others.
Any R object can be entered, but the utility of this function is not to transform
objects of other classes into objects of class "motbf"
.
Additional arguments, not needed for these methods.
By default is "motbf"
.
# NOT RUN {
## Subclass 'MOP'
param <- c(1,2,3,4,5)
MOPString <- asMOPString(param)
fMOP <- motbf(MOPString)
print(fMOP) ## fMOP
as.character(fMOP)
as.list(fMOP)
is(fMOP)
is.motbf(fMOP)
## Subclass 'MTE'
param <- c(6,7,8,9,10)
MTEString <- asMTEString(param)
fMTE <- motbf(MTEString)
print(fMTE) ## MTE
as.character(fMTE)
as.list(fMTE)
is(fMTE)
is.motbf(fMTE)
# }
Run the code above in your browser using DataLab