フィルターのクリア

How to add condition for X in simulannealbnd

1 回表示 (過去 30 日間)
Khoo
Khoo 2013 年 8 月 21 日
for X = SIMULANNEALBND(FUN,X0,LB,UB), the vector X0 starts the point finding so that the answer LB<=X<=UB. How if i want to add a certain condition to vector X, say exp(X(1)+X(2))<X(3)?
Another word to say besides the X must in between LB and UB, X has to fulfill the condition as well.
Thanks!

採用された回答

Shashank Prasanna
Shashank Prasanna 2013 年 8 月 21 日
Simulated Annealing does not allow for non-linear constraints, it only allows bound constraints. Hence simulannealibnd.
If you have non-linear constraints such as the one you shared in the questions, you can use GA instead

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeOptimization Toolbox についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by