search for: b3m

Displaying 1 result from an estimated 1 matches for "b3m".

Did you mean: b3
2008 Dec 11
2
Simplex function in R
...elp. Case 1: Find any feasible solution for the set of linear equations: a + b + c = 5 a + b + 0c = 4 0a + b + c = 4 Solution - a feasible (and unique) solution is a=1, b=3, c=1. The following R code returns a feasible solution: A3M = matrix(c(1,1,0,1,1,1,1,0,1),nrow=3) b3M = matrix(c(5,4,4),ncol=1) A1M = matrix(c(1,0,0,0,1,0,0,0,1),nrow=3) b1M = matrix(c(10,10,10),ncol=1) AM = matrix(c(1,1,1),nrow=1) simplex(a = AM, A1 = A1M, b1 = b1M, A2 = NULL, b2 = NULL, A3 = A3M, b3 = b3M, maxi = TRUE) Case 2: Find any feasible solution for the set of linear equations a +...