Learn R Programming

goalprog (version 1.0-2)

get.variable.class: Get the variable complementarity class

Description

This function returns an integer complementarity class for the given variable name.

Usage

get.variable.class(tab, variable)

Arguments

tab
A list of named components with the augmented modified simplex tableau
variable
A character string with the name of the variable

Value

  • A positive integer if the variable is found; zero otherwise.

Details

The function uses the variable.classes component of the tableau to determine the complementarity class for the given variable. If the variable is not found then a zero value is returned.

See Also

check.ev.cp