Free Access Week-  Data Engineering + BI
Data engineering and BI courses are free!
Free AI Access Week from June 2-8

MoTBFs (version 1.4.1)

Class-MoTBF: Class "motbf"

Description

Defines an object of class "motbf" and other basic functions for manipulating "motbf" objects.

Usage

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")

Arguments

x

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.

class

By default is "motbf".

See Also

asMOPString and asMTEString

Examples

Run this code
# 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