L_objective: Linear Objective Function

Description Usage Arguments Value Author(s)

View source: R/objective.R

Description

A linear objective function is typically of the form

c^\top x

where c is a (sparse) vector of coefficients to the n objective variables x.

Usage

1
2
3
4
5
6
7
8
9
L_objective(L, names = NULL)

## S3 method for class 'L_objective'
terms(x, ...)

as.L_objective(x)

## S3 method for class 'L_objective'
variable.names(object, ...)

Arguments

L

a numeric vector of length n or an object of class "simple_triplet_matrix" (or coercible to such) with dimension 1 \times n, where n is the number of objective variables. Names will be preserved and used e.g., in the print method.

names

an optional character vector giving the names of x (column names of L).

x

an R object.

...

further arguments passed to or from other methods

object

an R object.

Value

an object of class "L_objective" which inherits from "Q_objective" and "objective".

Author(s)

Stefan Theussl


ROI documentation built on Aug. 29, 2020, 3:01 p.m.

Related to L_objective in ROI...