rozsasarpi / Code-calibration-Belarus

Reliability-based code calibration for steel structures considering ultimate limit states - Belarus, Eurocode
MIT License
1 stars 1 forks source link

Question: The execution logic of the package #3

Closed Jungle-13 closed 2 years ago

Jungle-13 commented 2 years ago

Thank you ,Sir! I want to know that in what order should this whole set of codes be run, or what is the logic of this set of codes?

rozsasarpi commented 2 years ago

Running the code

Running the calibration: run main.m. This will also save the results in a mat file and create some plots, see the bottom of main.m. The idea is that once you defined your problem you will need to interact (run) only this single file (main.m).

Logic of the set of codes

Note that it is particular to the cases considered in the related paper but of course you can adapt it to your needs.

A brief sketch of the logic.

I hope that this helps. If you have further questions please let me know.

Jungle-13 commented 2 years ago

Dear Sir. According to your prompt, I successfully ran the result. However, a new problem has appeared (haha), as follows:

Index in position 2 is invalid. Array indices must be positive integers or logical values.

Error in select_Results (line 30)
     [~, solu_idx] = min(sum(bsxfun(@minus, PF(:,pf_idx), pf).^2,2));

Error in plot_multisolu_gamma (line 30)
Results2 = select_Results(Model, Results, pf_idx, pf);

Error in main (line 90)
plot_multisolu_gamma(Model, Results)
rozsasarpi commented 2 years ago

Please try if changing this line:

https://github.com/rozsasarpi/Code-calibration-Belarus/blob/c35fa2b7d3dd5dce987c512d97060f6b33fd4da3/Matlab/plot_multisolu_gamma.m#L11

to this

pf_idx = 1;

solves it.

Jungle-13 commented 2 years ago

Many thanks for you!

rozsasarpi commented 2 years ago

I fixed the index, see the above linked merge. Please let me know if you have further questions or the issue is solved.

Jungle-13 commented 2 years ago

Yeah,Sir. Another problem as follows when I got the result: partial_f =

1.4940    0.8814    1.3046    0.9876    1.1832

Unrecognized function or variable 'plot_guides'.

Error in plot_multisolu_gamma (line 141) plot_guides(gca, Line)

Error in main (line 90) plot_multisolu_gamma(Model, Results)


rozsasarpi commented 2 years ago

It as another custom dependency that you need to add to your path: https://github.com/rozsasarpi/Plotting-Matlab/blob/1fc56ca127390009995924d1ac7590f415a43959/misc/plot_guides.m

I expect that a few more functions will be needed from the linked repository so it is probably the most convenient to add the entire content of the linked repo to your path.

Jungle-13 commented 2 years ago

Sorry I was delayed by something, just saw your reply . I have added the file to my setup path. Luckily, I have run perfectly with your literature (Calibrating Partial Factors – Methodology, Input Data and Case Study of Steel Structures), thank you very much for your Patient and detailed reply. My series of questions is over (haw-haw). I wish you good health and all the best. Best wishes!

rozsasarpi commented 2 years ago

I'm glad to hear that it works. If you have a question related to the paper and/or the code in the future feel free to open an issue.

Jungle-13 commented 2 years ago

Yeah,Sir. I will open an issuel on the Github if I have any question related to the paper and/or the code in the future. Thank you from from the bottom of my heart.  Best wishes! Zhangong Wang

------------------ 原始邮件 ------------------ 发件人: "rozsasarpi/Code-calibration-Belarus" @.>; 发送时间: 2022年1月15日(星期六) 晚上11:20 @.>; @.**@.>; 主题: Re: [rozsasarpi/Code-calibration-Belarus] Question: The execution logic of the package (Issue #3)

I'm glad to hear that it works. If you have a question related to the paper and/or the code in the future feel free to open an issue.

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>