L_objective function

Linear Objective Function

Linear Objective Function

A linear objective function is typically of the form [REMOVE_ME]c\topx[REMOVEME2] c^\topx [REMOVE_ME_2] where cc is a (sparse) vector of coefficients to the nn objective variables xx.

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 nn or an object of class "simple_triplet_matrix" (or coercible to such) with dimension 1×n1 \times n, where nn 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 xx

    (column names of LL).

  • x: an R object.

  • ...: further arguments passed to or from other methods

  • object: an R object.

Returns

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

Description

A linear objective function is typically of the form

c\topx c^\topx

where cc is a (sparse) vector of coefficients to the nn objective variables xx.

Author(s)

Stefan Theussl

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