Rsimplex: Rsimplex

Description Usage Arguments Examples

Description

educational simplex solver (one, two phase)

Usage

1
Rsimplex(A, b, C, constrains = c(FALSE), max = TRUE, log = TRUE)

Arguments

A

matrix of coefficeinets

b

vector of constrains

constrains

logical vector of constrain types TRUE >=, FALSE <=

max

logical, default TRUE

log

print iterations, default TRUE

Examples

1
2
3
4
5
A <- matrix(c(1,0,1,2,1,1),nrow=2,byrow=TRUE)
b <- c(24,30)
constrains <- c(TRUE, TRUE)
C <- c(8,2,5)
(sol <- Rsimplex(A,b,C,constrains,max=FALSE, log = TRUE))

jy-r/Rsimplex documentation built on May 10, 2019, 1:17 p.m.