Dynamic bounds in an optimizer
古いコメントを表示
I would like to have relationship constraints between variables an optimizer is trying. For example: If variable x(1) is greater than 10 then 8<= x(2) <= 12.
O = @(x) x(1)+x(2)+x(3);
IN= [10 10 10]; % Initial Values
LB=[5 5 5]; % Low Bound
UB=[15 15 15]; % Upper Bound
[set_matrix,best_cost]=simulannealbnd(O,IN,LB,UB); % Simulated Annealing
% if x(1)>10 then x(2) has to take values between 8 and 12
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Simulated Annealing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!