Optimizing With User Specified Gradients
1 回表示 (過去 30 日間)
古いコメントを表示
I am trying to use fmincon/fminunc but provide the analytical gradient. Example code tells me to use options like the following:
options = optimoptions('fmincon','SpecifyObjectiveGradient',true);
When I do so I receive the error: 'SpecifyObjectiveGradient' is not an option for FMINCON.
I use matlab 2015b.
I am looking for the simplest possible self contained example of specifying a gradient for use in optimization.
0 件のコメント
回答 (1 件)
Walter Roberson
2016 年 6 月 14 日
You are looking at the R2016a documentation. If you look at the R2015b documentation you will see GradObj and GradConstr rather than SpecifyObjectiveGradient and SpecifyConstraintGradient
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Problem-Based Optimization Setup についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!