R/swp.headings.R

Defines functions swp.headings

Documented in swp.headings

swp.headings <- function( tab, nr, nc )
{
###
### This function swaps row and column headings
###
### Parameters
### tab = a list of named components that specifies the modified simplex tableau
### nr = an integer row subscript
### nc = an integer column subscript
###
    temp <- tab$col.headings[nc]
    tab$col.headings[nc] <- tab$row.headings[nr]
    tab$row.headings[nr] <- temp
    return( tab )
}

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.