Q_objective function

Quadratic Objective Function

Quadratic Objective Function

A quadratic objective function is typically of the form [REMOVE_ME]12xQx+cx[REMOVEME2] \frac{1}{2} x^\top Qx + c^\top x [REMOVE_ME_2] where QQ is a (sparse) matrix defining the quadratic part of the function and cc is a (sparse) vector of coefficients to the nn defining the linear part.

Q_objective(Q, L = NULL, names = NULL) ## S3 method for class 'Q_objective' terms(x, ...) as.Q_objective(x) ## S3 method for class 'Q_objective' variable.names(object, ...)

Arguments

  • Q: a n×nn \times n matrix with numeric entries representing the quadratic part of objective function. Sparse matrices of class "simple_triplet_matrix" can be supplied.

  • L: a numeric vector of length nn, where nn is the number of objective variables.

  • names: an optional character vector giving the names of xx

    (row/column names of QQ, 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 "Q_objective" which inherits from "objective".

Description

A quadratic objective function is typically of the form

12xQx+cx \frac{1}{2} x^\top Qx + c^\top x

where QQ is a (sparse) matrix defining the quadratic part of the function and cc is a (sparse) vector of coefficients to the nn defining the linear part.

Author(s)

Stefan Theussl

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