How do I optimize the inputs to a function?

I have a measured pressure-signal (much like the one in the image below) and a function, which when solved by an ode-solver, roughly generates the same dataset.
How do I fine-tune the parameters for the match to improve even further?
My idea of a "plan-of-attack" is as follows:
% Load in raw data.
% Set up initial attempt at finding parameters manually
%
% Run ode23 to generate a dataset using the assigned parameters.
% Subtract the modelled dataset from the raw one - best-fit being achieved when the value is low.
%
% Set up new parameters (Monte-Carlo or based on findings, I'm not picky),
% and redo the process above for e.g. 50 iterations while storing the parameters yielding a best-fit solution.
I have virtually all toolboxes available to me, so this should not be an obstacle if your solution requires one :)
Best Regards,

その他の回答 (2 件)

Marcus Wikstol
Marcus Wikstol 2018 年 2 月 9 日

0 投票

I was not able to adopt the approach to my particular problem so I designed my own Monte-Carlo method for it. Thanks for trying to help anyways :)
Paul Sutton
Paul Sutton 2019 年 3 月 20 日

0 投票

Do you mind sharing how you achieved this?

カテゴリ

ヘルプ センター および File ExchangeOptimization Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by