Shapley Value

バージョン 1.0.0.0 (2.47 KB) 作成者: RMS Danaraj
This programs determines the shapley value of a cooperative game
ダウンロード: 941
更新 2014/4/25

ライセンスの表示

his software determines the shapley value of the transferable utility game.This developed as part of my research in cooperative games.This software can be utilised for transferable utility games.
Unzip the folder TU-RAJ and add it to the path.
if want to have the coalition matrix.Coalition matrix is the set of the all coalition combinations.for n player there are 2^n-1 colaition constraints.

The command coalition(n) will give the colaition matrix A;

Example-1

n=5;

A=coalition(n)

A =
1 0 0 0 0
0 1 0 0 0
0 0 1 0 0
0 0 0 1 0
0 0 0 0 1
1 1 0 0 0
1 0 1 0 0
1 0 0 1 0
1 0 0 0 1
0 1 1 0 0
0 1 0 1 0
0 1 0 0 1
0 0 1 1 0
0 0 1 0 1
0 0 0 1 1
1 1 1 0 0
1 1 0 1 0
1 1 0 0 1
1 0 1 1 0
1 0 1 0 1
1 0 0 1 1
0 1 1 1 0
0 1 1 0 1
0 1 0 1 1
0 0 1 1 1
1 1 1 1 0
1 1 1 0 1
1 1 0 1 1
1 0 1 1 1
0 1 1 1 1

To determine shapley value the no of players and the coalition values should be given as input to the program.

Example-2
n=5;

v=[1 2 3 4 5 3 4 5 6 5 6 7 7 8 9 6 7 8 8 9 10 9 10 11 12 10 11 12 13 14 15];
S=shap1(n,v)

引用

RMS Danaraj (2024). Shapley Value (https://www.mathworks.com/matlabcentral/fileexchange/46358-shapley-value), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R14
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0