Question: a ) Write a linear program to find an equation of the linear function f ( x ) = a x + b that best

a) Write a linear program to find an equation of the linear function f(x)=
ax+b that best fits the following points in the L1 sense:
(1,1),(2,2),(3,1),(4,5)
b) Solve this linear problem using scipy .optimmize. linprog. Include a printout
or a screenshot showing your code and the results of computations.
c) Write the equation of the function f(x) computed in part b) and plot this
function together with the points given in part a)
 a) Write a linear program to find an equation of the

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!