Saving a matrix that have been created in a function in order to use it later.
1 回表示 (過去 30 日間)
古いコメントを表示
I use fmincon to minimize a function subject to nonlinear constraints. Every time a fmincon calls for a constraint evaluation i want save the values of the constraints, because i will need them on the next constraint evaluation.
2 件のコメント
Stephen23
2017 年 4 月 19 日
The constraints are dynamic? I am not sure that the fmincon algorithm will like that...
回答 (1 件)
dpb
2017 年 4 月 19 日
You don't have to try to do that; use the functional form for the constraints for fmincon to call whenever it needs to evaluate the constraints--
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Nonlinear Optimization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!