How to solve nonlinear system of equations

1 回表示 (過去 30 日間)
Tyler
Tyler 2022 年 3 月 30 日
コメント済み: Tyler 2022 年 3 月 30 日
Hi,
I am trying to solve a flow network of various "nodes" or "stations" that have nonlinear relationships between them.
The non-linear relationships between them are created using regression (regress(y,X)) based on CFD data.
An example of one such relation would be:
P6 = P3 - (s36C + s36W*w + s36WW*w*w + s36N*N1 + s36NN*N1*N1);
where P6 is pressure at station 6, P3 is pressure at station 3, and s36C, s36W,s36N,s36NN refer to the constants from the regression, w is flow rate, N1 is speed, N1*N1 is speed squared).
I have relationships like this throughout my flow network from beginning to end.
I am currently solving it using an iterative approach where i guess an initial flow rate, and then solve the equations in nested loops to try to achieve convergence, but it is slow and likely not efficient.
I am looking for an appropriate solver within MATLAB that may handle this type of problem.
Any help would be greatly appreciated
Thank you.
  2 件のコメント
Torsten
Torsten 2022 年 3 月 30 日
編集済み: Torsten 2022 年 3 月 30 日
Tyler
Tyler 2022 年 3 月 30 日
Exactly what i needed, thank you!

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeSystems of Nonlinear Equations についてさらに検索

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by