optimization toolboxの制約条件
Ältere Kommentare anzeigen
タイトルにもありますように,optimization toolboxの制約条件の設定で以下のエラーが出て困っています.
関数 'exp' (タイプ'optim.problemdef.OptimizationVariable' の入力引数) が未定義です。
私のコードでは,
x = optimvar('x');
で最適化の変数を定義し
confn = x*exp(x) <=b; % b = const.
のように制約条件を設定したいと思っているのですがエラーが出てしまいます.
の(5)の状況で,exp関数への入力として,optimvarで定義された値が適さないということだと思ったのですが,解決方法がわかりません.
解決方法があれば教えて頂きたいです.
よろしくお願いします.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu ソルバーの選択 finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!