Minimization Algorithm (fmincon)
古いコメントを表示
I am trying to set up a minimization code using the function fmincon. My code describes a chemical reactor, which receives a series of temperatures and molar fractions as input data (lines 44-149 in the Matlab code, if "clearvars" is line 1). In particular, I have carried out 20 experiments, each of whose has been analyzed at 9 diverse temperatures (220, 240, 260, 280, 300, 320, 340, 360, 380 °C): the molar fractions getting out of the reactor (180 for each species, i.e. 9*20, lines 151-178) have to be compared to the ones predicted by the model. I need to find four parameters (k0_alpha3, k0_K_CO, Eapp_alpha3, DH_K_CO) so that the difference between the predicted and the measured CH4 molar fractions (yCH4out_model and yCH4out, respectively) is minimum. The code I have implemented runs, but it is strongly affected by the initial-guess values and seems not to minimize the aforementioned quantity at all. I have also plotted the predicted values vs the measured ones for each experiment (20 plots) with respect to temperature and a clear difference is observable: a manual modification of the parameters can simply enhance my results, wich means that there might be something "fishy" in my code. What can I do to improve my results? The file of interest has been attached.
Thanks in advance, Riccardo Rinaldi
2 件のコメント
Torsten
2018 年 10 月 19 日
Is it really correct that you integrate from w=0 up to w=Mcat ?
Riccardo Rinaldi
2018 年 10 月 19 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Solver Outputs and Iterative Display についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!