You are on page 1of 4

COALITIONS <- c(20, 30, 20, 10, 5, 65, 55, 45, 40, 50, 40, 35, 30, 25,

15, 85, 75, 70, 65, 60, 50,


60, 55, 45, 35, 95, 90, 65, 70, 80, 100)

> LEMAIRE<-DefineGame(5,COALITIONS)

> summary(LEMAIRE)

Characteristic form of the game

Number of agents: 5

Coaliton Value(s)

v(i)

1 35

2 30

3 20

4 10

5 5

12 65

13 55

14 45

15 40

23 50

24 40

25 35

34 30

35 25

45 15

123 85

124 75

125 70

134 65
135 60

145 50

234 60

235 55

245 45

345 35

1234 95

1235 90

1245 65

1345 70

2345 80

12345 100

> NAMES <- c("VINI","KATHY","KATY","KARY","TEDY")

> LEMAIRESHAPLEY <- ShapleyValue(LEMAIRE,NAMES)

There were 30 warnings (use warnings() to see them)

> summary(LEMAIRESHAPLEY)

Shapley Value for the given game

Shapley Value

VINI 31.25

KATHY 30.00

KATY 23.75

KARY 10.00

TEDY 5.00

> INARRA <- AllRules(100,COALITIONS,NAMES)

Error in vector("list", gamma(n + 1)) :

vector size specified is too large

> CLAIMS <- c(35, 30, 20, 10, 5, 65, 55, 45, 40, 50, 40, 35, 30, 25, 15, 85, 75, 70, 65, 60, 50, 60,
55, 45, 35, 95, 90, 65, 70, 80, 100)
> NAMES <- c("VINI","KATHY","KATY","KARY","TEDY")

> INARRA <- AllRules(100,COALITIONS,NAMES)

Error in vector("list", gamma(n + 1)) :

vector size specified is too large

> INARRA <- AllRules(100,CLAIMS,NAMES)

Error in vector("list", gamma(n + 1)) :

vector size specified is too large

> CLAIMS <- c(31.25, 30, 23.75, 10, 5)

> NAMES <- c("VINI","KATHY","KATY","KARY","TEDY")

> INARRA <- AllRules(100,CLAIMS,NAMES)

> summary(INARRA)

Claims of the Agents

VINI KATHY KATY KARY TEDY

31.25 30.00 23.75 10.00 5.00

Assignments according to the following rules

Proportional CEA CEL Talmud RA

VINI 31.25 20 31.25 31.25 31.25

KATHY 30.00 20 30.00 30.00 30.00

KATY 23.75 20 23.75 23.75 23.75

KARY 10.00 20 10.00 10.00 10.00

TEDY 5.00 5 5.00 5.00 5.00

Inequality Analysis among rules (Gini Index)

Proportional CEA CEL Talmud RA

0.29 0.14 0.29 0.29 0.29

> plot(INARRA,5)
There were 14 warnings (use warnings() to see them)

> plot(INARRA,5)## Display allocations for TEDY

There were 14 warnings (use warnings() to see them)

> LorenzRules(INARRA) ## Inequality graph

Warning messages:

1: In axis(side = side, at = at, labels = labels, ...) :

font family not found in Windows font database

2: In title(...) : font family not found in Windows font database

3: In title(...) : font family not found in Windows font database

4: In title(...) : font family not found in Windows font database

5: In strwidth(legend, units = "user", cex = cex, font = text.font) :

font family not found in Windows font database

> save.image("E:\\operativa\\.RData")

> save.image("E:\\.RData")

> save.image("E:\\OPER")