フィルターのクリア

Identify maximum value with condition

1 回表示 (過去 30 日間)
Santhosh Chandrasekar
Santhosh Chandrasekar 2018 年 3 月 1 日
Hi i have a 3d matrix
resultA=zeros(221,5,1000000);
A1= 0 + (1-0).*rand(221,1);
X11= A*A1;
P= zeros(221,1);
P(:)= X11(:)/max(X11);
D1= 0 + (1-0).*rand(221,1);
to store values
i=1:1000000
resultA(:,1,i)=A1; % 221X1 random values for every iteration
resultA(:,2,i)=D1; % 221X1 random values for every iteration
resultA(:,3,i)=P; % 221X1 calculated values every iteration
resultA(1,4,i)=UtilityD; % 1 calculated values every iteration based on A1 nad D1
resultA(1,5,i)=UtilityA; % 1 calculated values every iteration based on A1 nad D1
My requirement is after completing 1000000 iterations I want to find the same A1 and D1 vectors that will gives maximum utility for both utilityD and utilityA.
  2 件のコメント
Walter Roberson
Walter Roberson 2018 年 3 月 1 日
If there were 3 candidates, (4,2), (3,3), (0,6), then which of these would be considered to be the maximum utility for both entries?
Santhosh Chandrasekar
Santhosh Chandrasekar 2018 年 3 月 1 日
It may have multiple solutions and if there are multiple solutions it should show the multiple utilities with their corresponding A1 and D1.

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

回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by