Shapley Value

This programs determines the shapley value of a cooperative game
961 download
Aggiornato 25 apr 2014

Visualizza la licenza

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)

Cita come

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

Compatibilità della release di MATLAB
Creato con R14
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0