Objective - Accessor and Mutator Functions
The objective of a given optimization problem (OP ) can be accessed or mutated via the method 'objective'
.
objective(x) objective(x) <- value as.objective(x)
x
: an object used to select the method.value
: an R object.a function inheriting from "objective"
.
x <- OP() objective(x) <- 1:3
Stefan Theussl