Question: PLEASE SOLVE IN PYTHON CODE USING PuLP 1. Consider the mn-matrix A and the vector bRm that are given by A=[aij],b=[bi] where aij=(1)i+j(ij),bi=(1)ifori=1,mandj=1,,n. Note that

 PLEASE SOLVE IN PYTHON CODE USING PuLP 1. Consider the mn-matrix

PLEASE SOLVE IN PYTHON CODE USING PuLP

1. Consider the mn-matrix A and the vector bRm that are given by A=[aij],b=[bi] where aij=(1)i+j(ij),bi=(1)ifori=1,mandj=1,,n. Note that aij is the entry of A at the i-th row and the j-th column. Consider the following condition on vectors xRn : (Condition1) Axb&x0. Write and run a python Jupyter notebook using the PuLP package, to check whether there is a vector xRn that satisfies (Condition1), - when m=n=10, and if it exists, find one. Submit your screenshots or the pdf file of your Jupyter Notebook; it should show both the codes and the results. [For credits, you must write a python Jupyter notebook to solve this problem.] Python Hint: Start with giving M=10 N=10 You may want to use Python lists combined with 'forloop'. For example, column =[j+1 for j in range (N)] row =[i+1 for i in range (M)] Then, one can define the matrix A and the vector b, using Python dictionaries combined with 'forloop' as a={i:{j:(1)(i+j)(ij) for j in column } for i in row } b={i:(1)(i) for i in row } In this way, the entry aij can be written in the later part of the Jupyter notebook code as a[i][j]. Similarly, b[i] for bi. For more instruction on the Python 'forloop', see https://wiki.python.org/moin/ForLoop

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 Databases Questions!