Wolfram Language

Calibrate System Parameters

Fitting model parameters to measured real-world data is a common step in modeling and simulation. In this example, the parameters for a controlled heating process in a water heater are fitted, based on measured data.

Create a fitting function that evaluates a ParametricFunction for a numeric value, remembering already computed values.

Create a model for the cooling process and a ParametricFunction varying the conductance of the kettle walls.

Use FindFit to find a parameter value matching the measured data.

Repeat the same process for the heating process, this time fitting the resistance in the heating element.

Now run the complete heating-cooling cycle with both the fitted parameters and compare it with the measured data.

Related Examples

de es fr ja ko pt-br zh