Ask an expert. Trust the answer.

Your academic and career questions answered by verified experts

Timothy asked . 2020-11-23

Why do AnalysisPoints change the results of systune optimization?

I am wondering why additional analysis points change the outcome of the optimization with the systune command. The results are quite similar, but I would have expected identical results, since - as far as I understood - analysis points should not affect the system dynamics.

 

%  Define Laplace variable
s = tf('s');

%  Define all single transfer functions
k12 = 0.5; 
k21 = -0.1;

G11 = 2/(s^2 + 3*s + 2);
G12 = k12/(s+1);
G21 = k21/(s^2 + 2*s + 1);
G22 = 6/(s^2 + 5*s + 6);
%  Concatenate MIMO system
G = [G11, G12; G21, G22];

%  Create tunable state-space system
C = tunableSS('C', 4, 2, 2);

%  Define some analysi points
X = AnalysisPoint('X', 2);
E = AnalysisPoint('E', 2);
U = AnalysisPoint('U', 2);

%  Closed loop WITH analysis points
Gw1 = feedback(E*C*U*G, X, -1);
Gw1.InputName = 'w';
Gw1.OutputName = 'y';

%  Closed loop WITHOUT analysi points
Gw2 = feedback(C*G, X, -1);
Gw2.InputName = 'w';
Gw2.OutputName = 'y';

%  Make sure the bode plots are identical before the optimiziation with
%  systune
figure; bode(Gw1, Gw2); legend;

%  Specify tuning goal
Rtrack = TuningGoal.StepTracking('w', 'y', 0.5/3);

%  Tune both closed loop systems with the same tuning goal
CL1 = systune(Gw1, Rtrack);
CL2 = systune(Gw2, Rtrack);

%  Review bode plots of the optimization results
figure; bode(CL1, CL2); legend;

matlab , control system , Analysis

Expert Answer

Kshitij Singh answered . 2025-03-27 02:39:32

The difference in the results of the systune optimization when including or excluding AnalysisPoint blocks is primarily due to how systune treats these blocks in the optimization process. Although AnalysisPoint blocks do not directly affect the system dynamics, they provide additional flexibility for tuning and evaluation during the optimization.

Here are the key factors that explain the difference:


1. Additional Tuning Parameters

When AnalysisPoint blocks are included, systune treats them as additional points where performance metrics can be evaluated. These points act as "virtual sensors" or "virtual actuators" that decouple signals for analysis purposes. This allows systune to optimize the closed-loop system in a more granular way by isolating specific signals for evaluation.

  • Without AnalysisPoint blocks, the system is optimized as a whole.
  • With AnalysisPoint blocks, systune can fine-tune the interactions between these points and the rest of the system.

This additional flexibility can lead to slightly different optimal controller parameters.


2. Normalization of Signals

AnalysisPoint blocks normalize signals for better conditioning during optimization. This normalization can affect how systune scales the internal weights and priorities of tuning goals, potentially leading to different results.

  • With AnalysisPoint blocks: The normalization ensures better numerical stability and alignment of the optimization process.
  • Without AnalysisPoint blocks: The system dynamics are treated without intermediate normalization, which might influence the optimization trajectory.

3. Intermediate Closed-Loop Gains

When AnalysisPoint blocks are present, they allow systune to access the intermediate closed-loop transfer functions (e.g., TU→XT_{U \to X}, TE→XT_{E \to X}) explicitly. This could change the optimization outcome if these intermediate transfer functions influence the tuning goal evaluation.


4. Evaluation of Tuning Goals

Some tuning goals, like TuningGoal.StepTracking, depend on evaluating closed-loop responses. If AnalysisPoint blocks are included, they create additional signal paths and modify how the goal is evaluated. For instance:

  • With AnalysisPoint blocks: The step tracking goal may be evaluated using decoupled paths.
  • Without AnalysisPoint blocks: The goal is evaluated directly on the main signal path.

These differences can alter the optimized controller parameters slightly.


Verifying the Effect

To verify the exact difference caused by AnalysisPoint blocks:

  1. Compare the tuned controller parameters (getBlockValue(C)).
  2. Analyze the intermediate transfer functions using getIOTransfer.
  3. Check the tuning goal satisfaction (viewGoal(CL1, Rtrack) and viewGoal(CL2, Rtrack)).

Recommendations

  1. Consistency: If the final application involves analyzing specific signals, include AnalysisPoint blocks consistently to align the optimization process with your analysis needs.
  2. Validation: Always validate the final closed-loop performance for both configurations using bode, step, or custom simulations.

In your specific example, the inclusion of AnalysisPoint blocks adds flexibility to the optimization process, which is why the results differ slightly between the two configurations.


Not satisfied with the answer ?? ASK NOW

Frequently Asked Questions

MATLAB offers tools for real-time AI applications, including Simulink for modeling and simulation. It can be used for developing algorithms and control systems for autonomous vehicles, robots, and other real-time AI systems.

MATLAB Online™ provides access to MATLAB® from your web browser. With MATLAB Online, your files are stored on MATLAB Drive™ and are available wherever you go. MATLAB Drive Connector synchronizes your files between your computers and MATLAB Online, providing offline access and eliminating the need to manually upload or download files. You can also run your files from the convenience of your smartphone or tablet by connecting to MathWorks® Cloud through the MATLAB Mobile™ app.

Yes, MATLAB provides tools and frameworks for deep learning, including the Deep Learning Toolbox. You can use MATLAB for tasks like building and training neural networks, image classification, and natural language processing.

MATLAB and Python are both popular choices for AI development. MATLAB is known for its ease of use in mathematical computations and its extensive toolbox for AI and machine learning. Python, on the other hand, has a vast ecosystem of libraries like TensorFlow and PyTorch. The choice depends on your preferences and project requirements.

You can find support, discussion forums, and a community of MATLAB users on the MATLAB website, Matlansolutions forums, and other AI-related online communities. Remember that MATLAB's capabilities in AI and machine learning continue to evolve, so staying updated with the latest features and resources is essential for effective AI development using MATLAB.

Without any hesitation the answer to this question is NO. The service we offer is 100% legal, legitimate and won't make you a cheater. Read and discover exactly what an essay writing service is and how when used correctly, is a valuable teaching aid and no more akin to cheating than a tutor's 'model essay' or the many published essay guides available from your local book shop. You should use the work as a reference and should not hand over the exact copy of it.

Matlabsolutions.com provides guaranteed satisfaction with a commitment to complete the work within time. Combined with our meticulous work ethics and extensive domain experience, We are the ideal partner for all your homework/assignment needs. We pledge to provide 24*7 support to dissolve all your academic doubts. We are composed of 300+ esteemed Matlab and other experts who have been empanelled after extensive research and quality check.

Matlabsolutions.com provides undivided attention to each Matlab assignment order with a methodical approach to solution. Our network span is not restricted to US, UK and Australia rather extends to countries like Singapore, Canada and UAE. Our Matlab assignment help services include Image Processing Assignments, Electrical Engineering Assignments, Matlab homework help, Matlab Research Paper help, Matlab Simulink help. Get your work done at the best price in industry.