objective: Objective - Accessor and Mutator Functions

View source: R/objective.R

objective (Set/Get)R Documentation

Objective - Accessor and Mutator Functions

Description

The objective of a given optimization problem (OP) can be accessed or mutated via the method 'objective'.

Usage

objective(x)

objective(x) <- value

as.objective(x)

Arguments

x

an object used to select the method.

value

an R object.

Value

a function inheriting from "objective".

Author(s)

Stefan Theussl

Examples

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

ROI documentation built on April 21, 2023, 1:11 a.m.

Related to objective in ROI...