R/get.variable.class.R

Defines functions get.variable.class

Documented in get.variable.class

get.variable.class <- function ( tab, variable )
{
###
### This function returns the variable complementarity class for the given variable
###
### Parameters
### tab = a list of named components for the augmented modified simplex tableau
### variable = a character string for the name of a variable
###
    variable.class <- 0
    for ( i in 1:tab$variables ) {
        if ( variable == tab$variable.classes[i,"variable"] ) {
            variable.class <- tab$variable.classes[i,"class"]
        }
    }
    return ( variable.class )
}

Try the goalprog package in your browser

Any scripts or data that you put into this service are public.

goalprog documentation built on May 30, 2017, 5:07 a.m.