Clear Filters
Clear Filters

Analog circuit optimisation to fit experimental data using Simulink

2 views (last 30 days)
I have an analog circuit model in simulink (simscape toolbox) consisting of resistors, LED diodes and a DC voltage source. I'm trying to measure the static characteristics (I-V curve) of one of the LED diode. I have some experimental data of the I-V characteristics of a laser diode and I would like to fit my Simulink model to this data. Is there a toolbox/function that allows me to automate this fitting process?
I have tried using the Simulink Design Optimization but haven't been able to get any sensible results.

Answers (1)

Kartik Saxena
Kartik Saxena on 6 Dec 2023
Hi,
Fitting a Simulink model to experimental data can be done using the Simulink Design Optimization Toolbox. This toolbox allows you to define parameters to estimate, specify the experimental data to fit to, and then run an optimization to find the best parameter values that minimize the difference between your model's output and the data.
  1. Here are the general steps you would take to fit your Simulink model to the experimental I-V characteristics of a laser diode:
  2. Prepare Your Model: Ensure that your Simulink model is set up correctly for optimization. This includes setting the correct initial conditions and having the necessary blocks to input your experimental data and measure the output.
  3. Parameterize Your Model: Identify the parameters in your model that you want to optimize. For an LED diode, this could be parameters like the series resistance, the saturation current, and the emission coefficient. Use Simulink.Parameter objects to parameterize these values in your model.
  4. Import Experimental Data: Import your experimental I-V data into MATLAB. You can use this data to create a lookup table or use interpolation blocks to input this data into your Simulink model.
  5. Set Up the Optimization Problem: Use the Response Optimization tool in Simulink Design Optimization to set up your optimization problem.
  6. Run the Optimization: Start the optimization process. The toolbox will adjust the parameters in your model to minimize the error between the Simulink output and the experimental data.
  7. Analyze Results: After the optimization is complete, analyze the results to see how well your model fits the experimental data. You can use plots to compare the optimized model output against the experimental I-V curve.
For more detailed information on how to use the Simulink Design Optimization Toolbox, you can refer to the following documentation:
I hope this resolves your issue.

Categories

Find more on Simulink Design Optimization in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!