optimization toolboxの制約条件
Afficher commentaires plus anciens
タイトルにもありますように,optimization toolboxの制約条件の設定で以下のエラーが出て困っています.
関数 'exp' (タイプ'optim.problemdef.OptimizationVariable' の入力引数) が未定義です。
私のコードでは,
x = optimvar('x');
で最適化の変数を定義し
confn = x*exp(x) <=b; % b = const.
のように制約条件を設定したいと思っているのですがエラーが出てしまいます.
の(5)の状況で,exp関数への入力として,optimvarで定義された値が適さないということだと思ったのですが,解決方法がわかりません.
解決方法があれば教えて頂きたいです.
よろしくお願いします.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur ソルバーの選択 dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!