R/calc.ti.R

Defines functions calc.ti

Documented in calc.ti

calc.ti <- function( tab, k )
{
###
### Compute the k-th index row
###
### Parameters
### tab = a list of named components that specify the modified simplex tableau
### k = an integer priority level
###
    for ( s in 1:tab$nonbasics ) {
        sum <- -tab$tw[k,s]
        for ( i in 1:tab$objectives ) {
            sum <- sum + tab$te[i,s] * tab$tu[i,k]
        }
        tab$ti[k,s] <- sum
    }
}

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.