The same action can produce different results when surroundings or the device change. How could measuring actual results help compensate for this?
Description
Measure the output and adjust the action according to its difference from the target
Reduce the effect of model gain changes on the overall response through appropriate design
02 How much to adjust the control action
Would a large control action for even a small error give more accurate control? What problems might arise when increasing the response?
Description
Stability, measurement noise, and actuation limits
Improved sensitivity alone does not establish the suitability of the full design
Practice
1. Calculate closed-loop gain and sensitivity
Before running the “3. Verify relative changes” code in the practice Live Script, calculate by hand using .
Differentiate and substitute into to obtain the baseline sensitivity .
Approximate calculation: Multiply by the relative increase of , 0.1.
Exact calculation: find and separately, then calculate .
You may leave both answers as fractions.
Save both handwritten calculations, then run the “3. Verify relative changes” code in the practice Live Script and compare them with approx·exact.
If they differ, check whether the denominator uses the pre-change .
Then repeat for the 1% and 20% conditions.
You have already completed the 10% condition, so you do not need to repeat it.
2. Baseline gain and sensitivity
Keep and apply . Substitute each into the open-loop gain , closed-loop gain , and sensitivity , and tabulate the three gain conditions as rows.
3. Verify relative changes
Calculate exact and approx in the relative-change calculation code for . Keep and unchanged.
Tabulate , the exact relative change, the approximate relative change, and their absolute difference.
Use the last table column to determine whether approximation error increases as increases. Also compare the relative gain change without feedback with the closed-loop value exact, and explain how much the change is reduced.
4. Repeat the checks
Add and alongside in the sensitivity-plotting code. Plot three sensitivity curves using the same Ka vector and label in the legend.
At the same , record the closed-loop gain and sensitivity for each side by side. For example, compare the three cases at the baseline .
Explain closed-loop gain in terms of output magnitude, and sensitivity in terms of the relative gain change caused by changes in . Distinguish a small gain from insensitivity to change.
Submission and saving
Include code, actual outputs and plots, and your own interpretation. Submit through KLAS; check the semester schedule and latest announcements for the deadline.
Filename: Name_StudentID_Week9.mlx.
Restart the runtime, run all code from the top, then save.
Optional practice
Example: using matrix division instead of element-wise division
In a copy of the “4. Repeat the checks” code in the practice Live Script, replace S=1./(1+Ka*beta) with S=1/(1+Ka*beta). Record whether a vector Ka causes an error or yields dimensions different from those expected.
Change only this line to ./ and write size(Ka) and size(S). Check whether the two vectors' elements correspond one to one.