variable: variable

Description Usage Arguments Value Author(s) Examples

Description

Make a list that represents an optimization variable and its coefficient in the context of a constraint.

Usage

1
variable(name, i = 1, j = NULL, coef = 1)

Arguments

name

Name of the optimization variable, created with make.ids.

i

If the optimization variable is a vector, the element. If it is a matrix, the row.

j

Column of the optimization variable.

coef

Coefficient of the optimization variable.

Value

List with elements "variable" "i" "j" "coef", of class "variable".

Author(s)

Toby Dylan Hocking

Examples

1
2
variable("xi",2,coef=-1)
variable("alpha",3,3)

quadmod documentation built on May 2, 2019, 4:39 p.m.