Optimization problem - solving problem within a loop
1 回表示 (過去 30 日間)
古いコメントを表示
I have a function in which I am using a loop and also discretisation in time. It is solving a PDE using Fully implicit backward method. I want to know how to define the objective function as the values are changing within the loop with time. Also how do I specify the variables which need to be modified for optimisation.
Thank you.
0 件のコメント
回答 (1 件)
Yogesh Khurana
2019 年 7 月 29 日
You can use Optimization Expressions for defining objective functions and its variables inside a for-loop. Refer to the following link for more information:
Hope it helps!
参考
カテゴリ
Help Center および File Exchange で Get Started with Optimization Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!