Question: How to extract matrix A and vectors x,b from display function in simplex package

Hi, the display function in the simplex package gives us a nice breakdown of the form Ax<=b, but how do we extract the individual elements, i.e. the matrix A and vectors x and b? Normal indexing into the expression doesn't work, i.e. if for some set of constraints of the form 2x+3y<=21 we enter


this gives us a nice expression, but res[1] etc. doesn't work as we might hope (i.e. by returning the matrix A).


Please Wait...