construct_tableau: construct_tableau

Description Usage Arguments Value

View source: R/primal_simplex_simplex.R

Description

Construct an initial simplex tableau of the linear program for given A, b, c, sense (max = 1, min = -1), relation ("<=", "=", "=>").

Usage

1
2
3
4
5
6
7
8
construct_tableau(
  A,
  b,
  c,
  sense = 1,
  relation = rep("<=", length(b)),
  bigM = 1000
)

Arguments

A

matrix, coefficient matrix of the LP

b

vector, RHS

c

vector, coefficients of the objective function

sense

scalar, max = 1, min = -1 (default = 1)

relation

vector, "<=", "=", "=>" (default = "<=")

bigM

scalar, M used in bigM-method (default = 1000)

Value

matrix, initial (primal feasible) simplex tableau


dirkdegel/simplexR documentation built on Feb. 22, 2020, 11:25 a.m.