Answered step by step
Verified Expert Solution
Question
1 Approved Answer
An industrial process requires a large motor to drive a heavy load. The efficiency of the motor is a function of the current ( I
An industrial process requires a large motor to drive a heavy load. The efficiency of the motor is
a function of the current I in Amp can be expressed as:
We would like to find the current that maximizes the efficiency of the motor.
To solve this problem, we first convert the optimization problem to a root finding problem. The
derivative of the efficiency function with respect to I is:
To find the root of the derivative function, we can apply any appropriate root finding methods,
such as the False Position method or the builtin Brent's Method of PYTHON. You would need
to complete the following tasks:
Plot the efficiency curve of the motor as a function of the current I. Add labels on both axes.
Plot the derivative of efficiency with respect to current. Add labels on both axes.
Select an appropriate bracketing interval. Apply the False Position method code to solve this
optimization problem, with an accuracy of significant figures. In addition, insert a counter to
count the number of iterations. Print the solution with correct significant figures and number
of iterations using an informative statement.
Apply the PYTHON builtin brentq function to solve the optimization problem. Print the
solution.
The False Position algorithm can be improved. One such improved version is called Illinois
algorithm. The Illinois algorithm is a bracketed root finding method. This algorithm modifies
the updating rule and formula of the False Position method. Starting with a valid bracketing
interval can be the same interval as the False Position the Illinois algorithm performs the
following:
First guess
xr
no ea since no previous iteration
Check
ME Computer Aided Analysis EXAM Coding Part
If sign of fxl is the same as sign of fxr replace lower bound xl by xr
and the next
guess is xr
Otherwise, replace upper bound, xu by xr
and the next guess is xr
Calculate ea
Current Guess Previous Guess
Current Guess times If ea es
then stop. Otherwise,
repeat by going to step
In the above algorithm, note that there are two different updating formulas based on the signs
of Fxl fxu and fxr
Please use the same starting bracketing interval as in the False Position method. Insert a counter
to count the number of iterations. Print the solution with correct significant figures and number
of iterations using an informative statement.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started