Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Ex 07 - Leilao

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 18

Fornecedor 1 Fornecedor 2 Fornecedor 3 Fornecedor 4 Fornecedor 5 Fornecedor 6 Fornecedor 7 Fornecedor 8 Fornecedor 9

1 1 1 2 2 2 3 3 3 4 4 4 5 5 5 6 6 6 7 7 7 8 8 8 9

Vetor inicial 38 44 23 31 48 75 74 5 30
Vetor de preço (p) 3 8 38 4 4 44 2 3 23 3 1 31 4 8 48 7 5 75 7 4 74 10 5 5 3
1 1 3 2 5 3 7 4 9 5 11 6 13 7 15 8 17
Produto 1 1 1 1 0 0 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 1 0
2 0 0 0 0 1 0 0 0 0 0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0
3 0 0 1 1 0 1 0 1 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0
4 0 0 1 0 0 1 0 0 1 0 1 1 0 0 0 0 0 1 0 0 1 0 0 1 0
5 0 0 0 0 0 0 1 0 1 0 0 0 0 1 1 0 0 1 0 0 0 0 0 0 0
6 0 0 1 0 0 1 0 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0 0 1 0
7 0 0 0 0 0 1 0 0 1 1 0 1 0 0 0 0 0 1 0 1 0 0 0 1 0
8 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 1 1 0
9 0 0 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 1 0 0 1 0
10 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0 0 1 0
11 0 0 0 0 0 1 0 0 0 0 0 1 0 0 1 1 0 0 0 0 0 0 0 1 0
12 0 0 0 0 0 1 0 0 1 0 0 1 0 0 0 0 0 1 0 0 1 0 0 0 0
13 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 0 0 0 1 0
14 0 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1 0 0 0 0 0 0 1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
Preço Descrição
Aquisicao todos os produtos Custo total Fornecedor 1 Op. 1 3 Item único
576 55 Op. 2 8 Item único
Op. 3 38 Pacote
Fornecedor 2 Op. 1 4 Item único
Op. 2 4 Item único
Op. 3 44 Pacote
Fornecedor 3 Op. 1 2 Item único
Op. 2 3 Item único
Op. 3 23 Pacote
Fornecedor 4 Op. 1 3 Item único
Op. 2 1 Item único
Op. 3 31 Pacote
Fornecedor 5 Op. 1 4 Item único
Op. 2 8 Item único
Op. 3 48 Pacote
Fornecedor 6 Op. 1 7 Item único
Op. 2 5 Item único
Op. 3 75 Pacote
Fornecedor 7 Op. 1 7 Item único
Op. 2 4 Item único
Op. 3 74 Pacote
Fornecedor 8 Op. 1 10 Item único
Op. 2 5 Item único
Op. 3 5 Pacote
Fornecedor 9 Op. 1 3 Item único
Op. 2 10 Item único
Op. 3 30 Pacote
Fornecedor 10 Op. 1 10 Item único
Op. 2 8 Item único
Op. 3 8 Pacote
Fornecedor 11 Op. 1 4 Item único
Op. 2 6 Item único
Op. 3 46 Pacote
Fornecedor 12 Op. 1 3 Item único
Op. 2 2 Item único
Op. 3 32 Pacote
Compra
0
0
0
0
1
0
1
0
0
1
0
1
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
Fornecedor 1 Fornecedor 2 Fornecedor 3 Fornecedor 4 Fornecedor 5 Fornecedor 6 Fornecedor 7 Fornecedor 8 Fornecedor 9
1 1 1 2 2 2 3 3 3 4 4 4 5 5 5 6 6 6 7 7 7 8 8 8 9

Vetor inicial 38 44 23 31 48 75 74 5 30
Vetor de preço (p) 3 8 38 4 4 44 2 3 23 3 1 31 4 8 48 7 5 75 7 4 74 10 5 5 3
1 1 3 2 5 3 7 4 9 5 11 6 13 7 15 8 17

Produto 1 1 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0 0 0 0 1 0 1 0 0
0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0
0 1 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0
0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0
0 0 0 0 1 1 0 1 0 0 0 0 1 1 0 0 0 0 0 1 0 0
0 0 0 0 1 0 0 1 0 0 0 0 1 0 0 0 0 1 0 1 0 0
0 0 0 0 0 0 0 1 1 0 0 0 0 1 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0
ercício B
Preço Descrição
Fornecedor 1 38 Pacote
Aquisição de produtos Aquisicao todos os produtos Custo total Fornecedor 2 44 Pacote
Fornecedor 3 23 Pacote
2 21233664 67 Fornecedor 4 31 Pacote
1 Fornecedor 5 48 Pacote
2 0.21818181818182 Fornecedor 6 75 Pacote
3 Fornecedor 7 74 Pacote
1 Fornecedor 8 5 Pacote
2 Fornecedor 9 30 Pacote
4 Fornecedor 10 8 Pacote
4 Fornecedor 11 46 Pacote
2 Fornecedor 12 32 Pacote
2
2
2
4
2
2
3
2
1
2
1
3
3
1
2
Compra
0
0
0
1
0
0
0
0
0
1
0
0
1 1 1 2 2 2 3 3 3 4 4 4 5 5 5 6 6 6 7 7 7 8 8 8

38 44 23 31 48 75 74 5
19 29 57 74 43 20 90 20
95 61 58 22 4 2 99 99
38 47 54 36 90 98 10 83
3 2 11 15 50 46 8 42
89 63 33 90 38 44 50 78
37 11 86 2 57 41 99 31
63 23 7 37 66 20 56 20
28 24 26 45 17 82 76 39
38 73 75 10 96 59 31 48
66 42 76 26 71 14 33 33
83 34 64 9 44 62 58 48
91 33 22 14 73 1 11 83
69 57 9 17 53 55 96 2
46 94 35 56 60 94 20 60
27 95 74 25 84 3 7 88
46 9 49 66 41 12 45 41
89 85 86 12 22 89 25 10
64 70 58 41 5 49 8 68
93 63 69 30 2 4 26 92
61 22 52 40 74 67 29 97
22 37 27 11 57 4 19 57
22 80 34 89 12 29 37 44
98 29 91 27 59 43 9 70
8 83 25 40 58 40 64 56
9 9 9 10 10 10 11 11 11 12 12 12

30 8 46 32
25 36 70 69
78 78 83 82
43 32 26 26
69 60 17 42
22 87 10 88
66 60 65 64
96 6 79 80
65 1 73 91
78 58 8 88
86 76 71 66
32 72 26 95
97 68 95 65
41 3 89 33
73 4 84 98
29 4 79 84
49 36 33 43
10 71 19 45
68 88 54 0
36 48 69 45
50 71 39 79
93 8 35 69
71 38 40 37
72 51 49 73
42 78 54 6

You might also like