Link external program (HEC HMS) and optimize the parameters using Matlab

5 ビュー (過去 30 日間)
Morin De Jesus
Morin De Jesus 2024 年 11 月 29 日
編集済み: Jaskirat 2025 年 1 月 24 日
I want to automate my calibration and validation process in my hydrological model (HEC HMS). I want to do optimization code in matlab, where it can reiterate the parameters until it achieve the best error index. I already have a setup of the HMS model on my area, I am on the process of calibrating my parameters.

回答 (1 件)

Jaskirat
Jaskirat 2025 年 1 月 24 日
編集済み: Jaskirat 2025 年 1 月 24 日
Hello,
From what I understood, you are attempting to write some optimization functions for your hydrological model in MATLAB.
The following steps might be helpful to write the optimization function:
  • Define an objective function to calculate error index between observed and simulated data.
  • Setup the parameters you need to calibrate.
  • Use the optimization algorithm functions available in MATLAB. For example, the “fmincon” function can be used for deterministic optimisation or the Genetic Algorithm “ga” for stochastic optimisation. The function can be chosen based on the model.
  • Automate HEC-HMS execution and iterate till you get a satisfactory result.
Refer the below documentation for more information on how to implement the given steps.
Hope this helps.

カテゴリ

Help Center および File ExchangeOceanography and Hydrology についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by