objective function

Objective - Accessor and Mutator Functions

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)

Arguments

  • x: an object used to select the method.
  • value: an R object.

Returns

a function inheriting from "objective".

Examples

x <- OP() objective(x) <- 1:3

Author(s)

Stefan Theussl

  • Maintainer: Stefan Theussl
  • License: GPL-3
  • Last published: 2023-04-20