linprog and ode45

1 回表示 (過去 30 日間)
Taehun Kim
Taehun Kim 2022 年 4 月 13 日
編集済み: Torsten 2022 年 4 月 14 日
Dear All,
I am solving a linear program (LP) within the right hand side function of ode45. The linear system has about 200 equality constraints. Compare to my previous solution method, without linprog.m inside the right hand side function, I am seeing a dramatic slow down in my code...
Do you know if there is a way to accelerate the performance of linprog or is it just not possible to solve LPs any faster?
Also, when I surpress the output of the linprog.m using option, the call to the options function is quite slow too...
Sincerely,
Tae
  10 件のコメント
Matt J
Matt J 2022 年 4 月 14 日
Because the numerical methods used (especially the error estimators) assume that the functions of the right-hand side are smooth.
Do they? I find it hard to imagine they couldn't handle a step input, given how common those are in engineering applications of ODEs.
Torsten
Torsten 2022 年 4 月 14 日
編集済み: Torsten 2022 年 4 月 14 日
Engineers are optimistic people ...
I had to smile when I recently saw a book titled "Numerical methods for engineers and scientists".

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeSolver Outputs and Iterative Display についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by