Simulated Annealing with two vector Decision Variables

1 回表示 (過去 30 日間)
Saifullah Khalid
Saifullah Khalid 2017 年 6 月 12 日
コメント済み: Saifullah Khalid 2017 年 6 月 12 日
I have an objective function which takes two distinct vector (price1 and price2) decision variables each 24 elements long and evaluate to a scaler value. I want to get an optimized values for these two vectors (price1 and price2) using Matlab simulannealbnd function. I am not sure whether this Matlab function can take two vectors as input at a time and optimize or I have to do iteratively, optimize price1 while fixing price2 vice versa. The objective function is:
profit = sum(sum(W.*price1(1:4)) + sum(Y(1:24).*price2(1:24))

採用された回答

John D'Errico
John D'Errico 2017 年 6 月 12 日
編集済み: John D'Errico 2017 年 6 月 12 日
Is there a good reason why you cannot set it up to optimize one vector of length 48, where you split it into a pair of vectors? No. Numbers are just numbers until you define what they mean.
  1 件のコメント
Saifullah Khalid
Saifullah Khalid 2017 年 6 月 12 日
thanks,this solved my problem.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulated Annealing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by