Question: Write a python function that takes in a linear programming problem and returns a simplex tableau and basis by the specifications above ( return tableau,

Write a python function that takes in a linear programming problem and returns a simplex tableau and basis by the specifications above (return tableau, basis). You may assume that all the input problems can be put into canonical form. The first line of the function should appear as: def makeTableau(c, A, b) where c, b and basis are numpy row array (do not worry about making then columns). Here is an example of the input and expected output of the function: A = np.array([[3,-4,1],[4,5,-4]], float) c = np.array([0,2,5], float) b = np.array([49,8], float) tableau, basis makeTableau (c, A, b) tableau, basis (array([[-0.,2.,5.,0.,0.,0.],[3.,-4.,1.,1.,0.,49.],[4.,5.,-4.,0.,1.,8.]]), array([3,4]))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!