178
Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and Game Theory I. Imperfect Competition Xavier Vilà Universitat Autònoma de Barcelona UIB. January 14 th , 2005 Xavier Vilà Genetic Algorithms and Game Theory

Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

  • Upload
    vukiet

  • View
    220

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Genetic Algorithms and Game TheoryI. Imperfect Competition

Xavier Vilà

Universitat Autònoma de Barcelona

UIB. January 14th, 2005

Xavier Vilà Genetic Algorithms and Game Theory

Page 2: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Outline

1 MotivationMethodological MotivationEconomical Motivation

2 Genetic AlgorithmsCanonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

3 Application: Imperfect CompetitionThe ModelThe Deterministic ApproachThe Simulation Approach

Xavier Vilà Genetic Algorithms and Game Theory

Page 3: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Methodological MotivationEconomical Motivation

Outline

1 MotivationMethodological MotivationEconomical Motivation

2 Genetic AlgorithmsCanonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

3 Application: Imperfect CompetitionThe ModelThe Deterministic ApproachThe Simulation Approach

Xavier Vilà Genetic Algorithms and Game Theory

Page 4: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Methodological MotivationEconomical Motivation

Computation versus Simulation

Computation

Find solutions to a problem usingcomputer techniques and/oralgorithms

“Black Box”

The FINAL RESULT isimportant

Concern on efficiency,complexity, convergence, ..

Simulation

Study the behavior of a systemusing computer simulations toemulate its components

“Crystal Box”

The WHOLE PROCESS isimportant

Concern on complexity,convergence, adequateness

Xavier Vilà Genetic Algorithms and Game Theory

Page 5: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Methodological MotivationEconomical Motivation

Computation versus Simulation

Computation

Find solutions to a problem usingcomputer techniques and/oralgorithms

“Black Box”

The FINAL RESULT isimportant

Concern on efficiency,complexity, convergence, ..

Simulation

Study the behavior of a systemusing computer simulations toemulate its components

“Crystal Box”

The WHOLE PROCESS isimportant

Concern on complexity,convergence, adequateness

Xavier Vilà Genetic Algorithms and Game Theory

Page 6: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Methodological MotivationEconomical Motivation

Computation versus Simulation

Computation

Find solutions to a problem usingcomputer techniques and/oralgorithms

“Black Box”

The FINAL RESULT isimportant

Concern on efficiency,complexity, convergence, ..

Simulation

Study the behavior of a systemusing computer simulations toemulate its components

“Crystal Box”

The WHOLE PROCESS isimportant

Concern on complexity,convergence, adequateness

Xavier Vilà Genetic Algorithms and Game Theory

Page 7: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Methodological MotivationEconomical Motivation

Computation versus Simulation

Computation

Find solutions to a problem usingcomputer techniques and/oralgorithms

“Black Box”

The FINAL RESULT isimportant

Concern on efficiency,complexity, convergence, ..

Simulation

Study the behavior of a systemusing computer simulations toemulate its components

“Crystal Box”

The WHOLE PROCESS isimportant

Concern on complexity,convergence, adequateness

Xavier Vilà Genetic Algorithms and Game Theory

Page 8: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Methodological MotivationEconomical Motivation

Computation versus Simulation

Computation

Find solutions to a problem usingcomputer techniques and/oralgorithms

“Black Box”

The FINAL RESULT isimportant

Concern on efficiency,complexity, convergence, ..

Simulation

Study the behavior of a systemusing computer simulations toemulate its components

“Crystal Box”

The WHOLE PROCESS isimportant

Concern on complexity,convergence, adequateness

Xavier Vilà Genetic Algorithms and Game Theory

Page 9: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Methodological MotivationEconomical Motivation

Computation versus Simulation

Computation

Find solutions to a problem usingcomputer techniques and/oralgorithms

“Black Box”

The FINAL RESULT isimportant

Concern on efficiency,complexity, convergence, ..

Simulation

Study the behavior of a systemusing computer simulations toemulate its components

“Crystal Box”

The WHOLE PROCESS isimportant

Concern on complexity,convergence, adequateness

Xavier Vilà Genetic Algorithms and Game Theory

Page 10: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Methodological MotivationEconomical Motivation

Computation versus Simulation

Computation

Find solutions to a problem usingcomputer techniques and/oralgorithms

“Black Box”

The FINAL RESULT isimportant

Concern on efficiency,complexity, convergence, ..

Simulation

Study the behavior of a systemusing computer simulations toemulate its components

“Crystal Box”

The WHOLE PROCESS isimportant

Concern on complexity,convergence, adequateness

Xavier Vilà Genetic Algorithms and Game Theory

Page 11: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Methodological MotivationEconomical Motivation

The Role of Agent-Based Computational Economics(ACE)

Agent-Based Computational Economics

Simulation of the behavior of agents in an economicenvironment

Bottom-Up approach

Focus on Emergent Properties

Xavier Vilà Genetic Algorithms and Game Theory

Page 12: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Methodological MotivationEconomical Motivation

The Role of Agent-Based Computational Economics(ACE)

Agent-Based Computational Economics

Simulation of the behavior of agents in an economicenvironment

Bottom-Up approach

Focus on Emergent Properties

Xavier Vilà Genetic Algorithms and Game Theory

Page 13: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Methodological MotivationEconomical Motivation

The Role of Agent-Based Computational Economics(ACE)

Agent-Based Computational Economics

Simulation of the behavior of agents in an economicenvironment

Bottom-Up approach

Focus on Emergent Properties

Xavier Vilà Genetic Algorithms and Game Theory

Page 14: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Methodological MotivationEconomical Motivation

Emergent Properties

Baking a Pie

Mixing Flour, Eggs, and Sugar and baking it you get more thana heated dough

The Market

“Mixing” Buyers, Sellers, and Goods and allowing forinterrelations (market) you get more than busy wanderingagents

Xavier Vilà Genetic Algorithms and Game Theory

Page 15: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Methodological MotivationEconomical Motivation

Emergent Properties

Baking a Pie

Mixing Flour, Eggs, and Sugar and baking it you get more thana heated dough

The Market

“Mixing” Buyers, Sellers, and Goods and allowing forinterrelations (market) you get more than busy wanderingagents

Xavier Vilà Genetic Algorithms and Game Theory

Page 16: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Methodological MotivationEconomical Motivation

Outline

1 MotivationMethodological MotivationEconomical Motivation

2 Genetic AlgorithmsCanonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

3 Application: Imperfect CompetitionThe ModelThe Deterministic ApproachThe Simulation Approach

Xavier Vilà Genetic Algorithms and Game Theory

Page 17: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Methodological MotivationEconomical Motivation

Competition on some attribute

All Agents behave strategically

SELLERS offer homogeneous goods that differ on someattribute

BUYERS search for goods with the best attribute

BUYERS and SELLERS simultaneously learn (evolve) toproduce better strategies

Example

Sellers choose price

Buyers look for the best price and decide on loyalty

Xavier Vilà Genetic Algorithms and Game Theory

Page 18: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Methodological MotivationEconomical Motivation

Competition on some attribute

All Agents behave strategically

SELLERS offer homogeneous goods that differ on someattribute

BUYERS search for goods with the best attribute

BUYERS and SELLERS simultaneously learn (evolve) toproduce better strategies

Example

Sellers choose price

Buyers look for the best price and decide on loyalty

Xavier Vilà Genetic Algorithms and Game Theory

Page 19: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Methodological MotivationEconomical Motivation

Competition on some attribute

All Agents behave strategically

SELLERS offer homogeneous goods that differ on someattribute

BUYERS search for goods with the best attribute

BUYERS and SELLERS simultaneously learn (evolve) toproduce better strategies

Example

Sellers choose price

Buyers look for the best price and decide on loyalty

Xavier Vilà Genetic Algorithms and Game Theory

Page 20: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Methodological MotivationEconomical Motivation

Competition on some attribute

All Agents behave strategically

SELLERS offer homogeneous goods that differ on someattribute

BUYERS search for goods with the best attribute

BUYERS and SELLERS simultaneously learn (evolve) toproduce better strategies

Example

Sellers choose price

Buyers look for the best price and decide on loyalty

Xavier Vilà Genetic Algorithms and Game Theory

Page 21: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Methodological MotivationEconomical Motivation

Competition on some attribute

All Agents behave strategically

SELLERS offer homogeneous goods that differ on someattribute

BUYERS search for goods with the best attribute

BUYERS and SELLERS simultaneously learn (evolve) toproduce better strategies

Example

Sellers choose price

Buyers look for the best price and decide on loyalty

Xavier Vilà Genetic Algorithms and Game Theory

Page 22: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Outline

1 MotivationMethodological MotivationEconomical Motivation

2 Genetic AlgorithmsCanonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

3 Application: Imperfect CompetitionThe ModelThe Deterministic ApproachThe Simulation Approach

Xavier Vilà Genetic Algorithms and Game Theory

Page 23: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Genetic Algorithms: Concept

Genetic Algorithms

Class of computer routines developed by Holland foroptimization in domains with both complicated search spacesand objective functions with non-linearities, discontinuities andhigh dimensionality

Genetic Algorithm techniques have been broadly used tosimulate the evolution of agent’s behavior

Xavier Vilà Genetic Algorithms and Game Theory

Page 24: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Genetic Algorithms: Concept

Genetic Algorithms

Class of computer routines developed by Holland foroptimization in domains with both complicated search spacesand objective functions with non-linearities, discontinuities andhigh dimensionality

Genetic Algorithm techniques have been broadly used tosimulate the evolution of agent’s behavior

Xavier Vilà Genetic Algorithms and Game Theory

Page 25: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Genetic Algorithms: Schema

Population attime t

01100110

10011011

00100101

00011011

Initial Population

Population attime t + 0.5

00011011

01100110

00100101

10011011

ReorderAccording toperformance

Population attime t + 1

00011011

00111011

00101001

01100111

Operators

Replication,Crossover,Mutation

Xavier Vilà Genetic Algorithms and Game Theory

Page 26: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Genetic Algorithms: Schema

Population attime t

01100110

10011011

00100101

00011011

Initial Population

Population attime t + 0.5

00011011

01100110

00100101

10011011

ReorderAccording toperformance

Population attime t + 1

00011011

00111011

00101001

01100111

Operators

Replication,Crossover,Mutation

Xavier Vilà Genetic Algorithms and Game Theory

Page 27: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Genetic Algorithms: Schema

Population attime t

01100110

10011011

00100101

00011011

Initial Population

Population attime t + 0.5

00011011

01100110

00100101

10011011

ReorderAccording toperformance

Population attime t + 1

00011011

00111011

00101001

01100111

Operators

Replication,Crossover,Mutation

Xavier Vilà Genetic Algorithms and Game Theory

Page 28: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Genetic Algorithms: Crossover

Population attime t + 0.5

00011011

01100110

00100101

10011011

Parents Offspring

Xavier Vilà Genetic Algorithms and Game Theory

Page 29: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Genetic Algorithms: Crossover

Population attime t + 0.5

00011011

01100110

00100101

10011011

Parents Offspring

Randomly select two parents

Xavier Vilà Genetic Algorithms and Game Theory

Page 30: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Genetic Algorithms: Crossover

Population attime t + 0.5

00011011

01100110

00100101

10011011

Parents00011011

00100101

Offspring

Randomly select two parents

Xavier Vilà Genetic Algorithms and Game Theory

Page 31: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Genetic Algorithms: Crossover

Population attime t + 0.5

00011011

01100110

00100101

10011011

Parents

0001|1011

0010|0101

Offspring

Randomly determine a cut point

Xavier Vilà Genetic Algorithms and Game Theory

Page 32: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Genetic Algorithms: Crossover

Population attime t + 0.5

00011011

01100110

00100101

10011011

Parents

0001|1011

0010|0101

Offspring

00010101

00101011

Create two children by crossoving parents at the cut point

Xavier Vilà Genetic Algorithms and Game Theory

Page 33: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Genetic Algorithms: Mutation

For each string

00010101Each bit mutates with small probability

Xavier Vilà Genetic Algorithms and Game Theory

Page 34: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Genetic Algorithms: Mutation

For each string

00010101

Each bit mutates with small probability ε

00010101

Xavier Vilà Genetic Algorithms and Game Theory

Page 35: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Genetic Algorithms: Mutation

For each string

00010101

Each bit mutates with small probability ε

00011101

Xavier Vilà Genetic Algorithms and Game Theory

Page 36: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Outline

1 MotivationMethodological MotivationEconomical Motivation

2 Genetic AlgorithmsCanonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

3 Application: Imperfect CompetitionThe ModelThe Deterministic ApproachThe Simulation Approach

Xavier Vilà Genetic Algorithms and Game Theory

Page 37: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

The Repeated Prisoners’ Dilemma

Play the Repeated Prisoners’ Dilemma

C DC 3,3 0,5D 5,0 1,1

Strategies Represented by Finite Automata

Cooperate

C → 0

DefectD → 1

Xavier Vilà Genetic Algorithms and Game Theory

Page 38: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

The Repeated Prisoners’ Dilemma

Play the Repeated Prisoners’ Dilemma

C DC 3,3 0,5D 5,0 1,1

Strategies Represented by Finite Automata

Cooperate

C → 0

DefectD → 1

Xavier Vilà Genetic Algorithms and Game Theory

Page 39: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Finite Automata

Always Cooperate

0

1, 0

Always Defect

1

1, 0

Tit for Tat

1 0 1

1 0

0

Xavier Vilà Genetic Algorithms and Game Theory

Page 40: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Automata Encoding

Automata (strategies) need to be encoded as 0’s and 1’s

Tit for Tat

1 0 1

1 0

0

Might be encoded as ...

Xavier Vilà Genetic Algorithms and Game Theory

Page 41: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Automata Encoding

Automata (strategies) need to be encoded as 0’s and 1’s

Tit for Tat

1 0 1

1 0

0

Might be encoded as ...

Xavier Vilà Genetic Algorithms and Game Theory

Page 42: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Automata Encoding

Automata (strategies) need to be encoded as 0’s and 1’s

Tit for Tat

1 0 1

1 0

0

Might be encoded as ...

0

Initial state (state 0)

Xavier Vilà Genetic Algorithms and Game Theory

Page 43: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Automata Encoding

Automata (strategies) need to be encoded as 0’s and 1’s

Tit for Tat

1 0 1

1 0

0

Might be encoded as ...

00

State 0: What to do at this state (COOPERATE)

Xavier Vilà Genetic Algorithms and Game Theory

Page 44: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Automata Encoding

Automata (strategies) need to be encoded as 0’s and 1’s

Tit for Tat

1 0 1

1 0

0

Might be encoded as ...

000

State 0: Where to go if my opponent COOPERATES (state 0)

Xavier Vilà Genetic Algorithms and Game Theory

Page 45: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Automata Encoding

Automata (strategies) need to be encoded as 0’s and 1’s

Tit for Tat

1 0 1

1 0

0

Might be encoded as ...

0001

State 0: Where to go if my opponent DEFECTS (state 1)

Xavier Vilà Genetic Algorithms and Game Theory

Page 46: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Automata Encoding

Automata (strategies) need to be encoded as 0’s and 1’s

Tit for Tat

1 0 1

1 0

0

Might be encoded as ...

00011

State 1: What to do at this state (DEFECT)

Xavier Vilà Genetic Algorithms and Game Theory

Page 47: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Automata Encoding

Automata (strategies) need to be encoded as 0’s and 1’s

Tit for Tat

1 0 1

1 0

0

Might be encoded as ...

000110

State 1: Where to go if my opponent COOPERATES (state 0)

Xavier Vilà Genetic Algorithms and Game Theory

Page 48: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Automata Encoding

Automata (strategies) need to be encoded as 0’s and 1’s

Tit for Tat

1 0 1

1 0

0

Might be encoded as ...

0001101

State 1: Where to go if my opponent DEFECTS (state 1)

Xavier Vilà Genetic Algorithms and Game Theory

Page 49: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Automata Encoding

Automata (strategies) need to be encoded as 0’s and 1’s

Tit for Tat

1 0 1

1 0

0

Might be encoded as ...

0001101

Tit for Tat Encoded

Xavier Vilà Genetic Algorithms and Game Theory

Page 50: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Automata Encoding

Automata (strategies) need to be encoded as 0’s and 1’s

Tit for Tat

1 0 1

1 0

0

0 1 0

0 1

1

Might be encoded as ...

0001101

Tit for Tat RELABELED

Xavier Vilà Genetic Algorithms and Game Theory

Page 51: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Automata Encoding

Automata (strategies) need to be encoded as 0’s and 1’s

Tit for Tat

1 0 1

1 0

0

0 1 0

0 1

1

Might be encoded as ...

0001101 1110010

Tit for Tat Encoded in two different ways !!

Xavier Vilà Genetic Algorithms and Game Theory

Page 52: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Canonical Crossover oddities

With this representation, the standard crossover operator posestwo problems:

What is the interpretation ?

Missleading behavior:

Xavier Vilà Genetic Algorithms and Game Theory

Page 53: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Canonical Crossover oddities

With this representation, the standard crossover operator posestwo problems:

What is the interpretation ?

Missleading behavior:

Xavier Vilà Genetic Algorithms and Game Theory

Page 54: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Canonical Crossover oddities

With this representation, the standard crossover operator posestwo problems:

What is the interpretation ?

Missleading behavior:

Xavier Vilà Genetic Algorithms and Game Theory

Page 55: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Canonical Crossover oddities: An Example

Two “Always Cooperate” strategies are selected for crossover.The “cut point” is right after the first bit

0 | 0 0 0 1 1 11 | 1 0 0 0 1 1

The outcome of the crossover will be ...

0 | 1 0 0 0 1 11 | 0 0 0 1 1 1

Two “Always Defect” strategies !!!

Xavier Vilà Genetic Algorithms and Game Theory

Page 56: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Canonical Crossover oddities: An Example

Two “Always Cooperate” strategies are selected for crossover.The “cut point” is right after the first bit

0 | 0 0 0 1 1 11 | 1 0 0 0 1 1

The outcome of the crossover will be ...

0 | 1 0 0 0 1 11 | 0 0 0 1 1 1

Two “Always Defect” strategies !!!

Xavier Vilà Genetic Algorithms and Game Theory

Page 57: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Canonical Crossover oddities: An Example

Two “Always Cooperate” strategies are selected for crossover.The “cut point” is right after the first bit

0 | 0 0 0 1 1 11 | 1 0 0 0 1 1

The outcome of the crossover will be ...

0 | 1 0 0 0 1 11 | 0 0 0 1 1 1

Two “Always Defect” strategies !!!

Xavier Vilà Genetic Algorithms and Game Theory

Page 58: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Modified Crossover: Partial Imitation

Partial Imitation Crossover1 Randomly generate a history of a given length. For

instance 0010.2 Determine the move that each of the two parents would

make given the sequence of inputs described by thehistory generated.

3 Form two new automata that reproduce the two parentsbut “switching” the move reported in step 2. Hence, thefirst new automaton will use the move reported by thesecond automaton if the sequence of inputs it gets is theone described by the history considered and vice versa.

Xavier Vilà Genetic Algorithms and Game Theory

Page 59: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Modified Crossover: Partial Imitation

Partial Imitation Crossover1 Randomly generate a history of a given length. For

instance 0010.2 Determine the move that each of the two parents would

make given the sequence of inputs described by thehistory generated.

3 Form two new automata that reproduce the two parentsbut “switching” the move reported in step 2. Hence, thefirst new automaton will use the move reported by thesecond automaton if the sequence of inputs it gets is theone described by the history considered and vice versa.

Xavier Vilà Genetic Algorithms and Game Theory

Page 60: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Modified Crossover: Partial Imitation

Partial Imitation Crossover1 Randomly generate a history of a given length. For

instance 0010.2 Determine the move that each of the two parents would

make given the sequence of inputs described by thehistory generated.

3 Form two new automata that reproduce the two parentsbut “switching” the move reported in step 2. Hence, thefirst new automaton will use the move reported by thesecond automaton if the sequence of inputs it gets is theone described by the history considered and vice versa.

Xavier Vilà Genetic Algorithms and Game Theory

Page 61: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Modified Crossover: Partial Imitation

Partial Imitation Crossover1 Randomly generate a history of a given length. For

instance 0010.2 Determine the move that each of the two parents would

make given the sequence of inputs described by thehistory generated.

3 Form two new automata that reproduce the two parentsbut “switching” the move reported in step 2. Hence, thefirst new automaton will use the move reported by thesecond automaton if the sequence of inputs it gets is theone described by the history considered and vice versa.

Xavier Vilà Genetic Algorithms and Game Theory

Page 62: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Modified Crossover: An Example

Always Cooperate

0

1, 0 Parents0 0 0 0 1 1 11 1 0 0 0 1 1

Fictitious History

0010Children

Xavier Vilà Genetic Algorithms and Game Theory

Page 63: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Modified Crossover: An Example

Always Cooperate

0

1, 0 Parents0 0 0 0 1 1 11 1 0 0 0 1 1

Fictitious History

0010Children

Xavier Vilà Genetic Algorithms and Game Theory

Page 64: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Modified Crossover: An Example

Always Cooperate

0

1, 0 Parents0 0 0 0 1 1 11 1 0 0 0 1 1

Fictitious History

0010

Children0 0 0 0 1 1 11 1 0 0 0 1 1

Xavier Vilà Genetic Algorithms and Game Theory

Page 65: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Canonical Mutation oddities

Canonical Mutation

In order to complete the population at time t− 1, each “bit”switches its value according to some probability p. It turns outthat this induces a non-uniform distribution across states

01 →

00 (1− p)p01 (1− p)2

10 p2

11 (1− p)p

Xavier Vilà Genetic Algorithms and Game Theory

Page 66: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Modified Mutation

Modified Mutation

This can be fixed easily making “statewise” mutations

01 →

00 p

301 (1− p)10 p

311 p

3

Xavier Vilà Genetic Algorithms and Game Theory

Page 67: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Outline

1 MotivationMethodological MotivationEconomical Motivation

2 Genetic AlgorithmsCanonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

3 Application: Imperfect CompetitionThe ModelThe Deterministic ApproachThe Simulation Approach

Xavier Vilà Genetic Algorithms and Game Theory

Page 68: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

The Repeated Prisoners’ Dilemma

Parameters

Size of population: 100

Number of Generations: 5000

Number of Rounds: from 10 to 250

Probability of Mutation: from 0.00 to 0.02 (step 0.001)

Four different crossovers and NO Crossover

Automata of size 4

Xavier Vilà Genetic Algorithms and Game Theory

Page 69: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

The Repeated Prisoners’ Dilemma

Parameters

Size of population: 100

Number of Generations: 5000

Number of Rounds: from 10 to 250

Probability of Mutation: from 0.00 to 0.02 (step 0.001)

Four different crossovers and NO Crossover

Automata of size 4

Xavier Vilà Genetic Algorithms and Game Theory

Page 70: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

The Repeated Prisoners’ Dilemma

Parameters

Size of population: 100

Number of Generations: 5000

Number of Rounds: from 10 to 250

Probability of Mutation: from 0.00 to 0.02 (step 0.001)

Four different crossovers and NO Crossover

Automata of size 4

Xavier Vilà Genetic Algorithms and Game Theory

Page 71: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

The Repeated Prisoners’ Dilemma

Parameters

Size of population: 100

Number of Generations: 5000

Number of Rounds: from 10 to 250

Probability of Mutation: from 0.00 to 0.02 (step 0.001)

Four different crossovers and NO Crossover

Automata of size 4

Xavier Vilà Genetic Algorithms and Game Theory

Page 72: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

The Repeated Prisoners’ Dilemma

Parameters

Size of population: 100

Number of Generations: 5000

Number of Rounds: from 10 to 250

Probability of Mutation: from 0.00 to 0.02 (step 0.001)

Four different crossovers and NO Crossover

Automata of size 4

Xavier Vilà Genetic Algorithms and Game Theory

Page 73: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

The Repeated Prisoners’ Dilemma

Parameters

Size of population: 100

Number of Generations: 5000

Number of Rounds: from 10 to 250

Probability of Mutation: from 0.00 to 0.02 (step 0.001)

Four different crossovers and NO Crossover

Automata of size 4

Xavier Vilà Genetic Algorithms and Game Theory

Page 74: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Different Crossovers

Fifty-Fifty Crossover

Randomly select two parents (as in the “canonical crossover”)Then each “locus” of the new children will have 50% probabilityof coming from each of the parents

Replica Crossover

Randomly select two parents (as in the “canonical crossover”)Then each children will be a exact replica of each parent

Xavier Vilà Genetic Algorithms and Game Theory

Page 75: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Different Crossovers

Fifty-Fifty Crossover

Randomly select two parents (as in the “canonical crossover”)Then each “locus” of the new children will have 50% probabilityof coming from each of the parents

Replica Crossover

Randomly select two parents (as in the “canonical crossover”)Then each children will be a exact replica of each parent

Xavier Vilà Genetic Algorithms and Game Theory

Page 76: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

The Repeated Prisoners’ Dilemma: Typical Output

Xavier Vilà Genetic Algorithms and Game Theory

Page 77: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

The Repeated Prisoners’ Dilemma: Alternative Output

Xavier Vilà Genetic Algorithms and Game Theory

Page 78: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

The Repeated Prisoners’ Dilemma: Occasional Output

Xavier Vilà Genetic Algorithms and Game Theory

Page 79: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Different Crossovers (changing Mutations)

Xavier Vilà Genetic Algorithms and Game Theory

Page 80: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Different Crossovers (changing Mutations)

Xavier Vilà Genetic Algorithms and Game Theory

Page 81: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Different Crossovers (changing Mutations)

Xavier Vilà Genetic Algorithms and Game Theory

Page 82: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Different Crossovers (changing Mutations)

Xavier Vilà Genetic Algorithms and Game Theory

Page 83: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Different Crossovers (changing Mutations)

Xavier Vilà Genetic Algorithms and Game Theory

Page 84: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Outline

1 MotivationMethodological MotivationEconomical Motivation

2 Genetic AlgorithmsCanonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

3 Application: Imperfect CompetitionThe ModelThe Deterministic ApproachThe Simulation Approach

Xavier Vilà Genetic Algorithms and Game Theory

Page 85: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Interpretation

The Repeated Prisoners’ Dilemma

C DC 3,3 0,5D 5,0 1,1

Xavier Vilà Genetic Algorithms and Game Theory

Page 86: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Interpretation

The Repeated Prisoners’ Dilemma

C DC 3,3 0,5D 5,0 1,1

Consider only tree possible strategies

Always Coperate: C

Always Defect: D

Tit for Tat: T

Xavier Vilà Genetic Algorithms and Game Theory

Page 87: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Interpretation

The Repeated Prisoners’ Dilemma

C DC 3,3 0,5D 5,0 1,1

Consider only tree possible strategies

Always Coperate: C

Always Defect: D

Tit for Tat: T

Xavier Vilà Genetic Algorithms and Game Theory

Page 88: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Interpretation

The Repeated Prisoners’ Dilemma

C DC 3,3 0,5D 5,0 1,1

Consider only tree possible strategies

Always Coperate: C

Always Defect: D

Tit for Tat: T

Xavier Vilà Genetic Algorithms and Game Theory

Page 89: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Interpretation

The Repeated Prisoners’ Dilemma

C DC 3,3 0,5D 5,0 1,1

Consider only tree possible strategies

Always Coperate: C

Always Defect: D

Tit for Tat: T

Xavier Vilà Genetic Algorithms and Game Theory

Page 90: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Interpretation

Play the Prisoners’ Dilemma for R rounds. The results will beas in the table below

C D TC 3R 0 3RD 5R R 5 + (R− 1)T 3R 0 + (R− 1) 3R

Represented by the Matrix

A =

3R 0 3R5R R 5 + (R− 1)3R 0 + (R− 1) 3R

Xavier Vilà Genetic Algorithms and Game Theory

Page 91: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Interpretation

Play the Prisoners’ Dilemma for R rounds. The results will beas in the table below

C D TC 3R 0 3RD 5R R 5 + (R− 1)T 3R 0 + (R− 1) 3R

Represented by the Matrix

A =

3R 0 3R5R R 5 + (R− 1)3R 0 + (R− 1) 3R

Xavier Vilà Genetic Algorithms and Game Theory

Page 92: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Interpretation

Let pt the vector consisting of the proportions of each strategyin the population at time t

pt =

pt(C)pt(D)pt(T )

Then, the expected payoff of strategy s ∈ {C,D, T} at time t isthe product of the s− th row of A and pt:

Et(s) = As.pt

Xavier Vilà Genetic Algorithms and Game Theory

Page 93: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Interpretation

Let pt the vector consisting of the proportions of each strategyin the population at time t

pt =

pt(C)pt(D)pt(T )

Then, the expected payoff of strategy s ∈ {C,D, T} at time t isthe product of the s− th row of A and pt:

Et(s) = As.pt

Xavier Vilà Genetic Algorithms and Game Theory

Page 94: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Interpretation

Let pt the vector consisting of the proportions of each strategyin the population at time t

pt =

pt(C)pt(D)pt(T )

Then, the expected payoff of strategy s ∈ {C,D, T} at time t isthe product of the s− th row of A and pt:

Et(s) = As.pt

Xavier Vilà Genetic Algorithms and Game Theory

Page 95: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Interpretation

Let pt the vector consisting of the proportions of each strategyin the population at time t

pt =

pt(C)pt(D)pt(T )

Then, the expected payoff of strategy s ∈ {C,D, T} at time t isthe product of the s− th row of A and pt:

Et(s) = As.pt

Xavier Vilà Genetic Algorithms and Game Theory

Page 96: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Interpretation

Consider the replicator dynamics to represent the evolution ofstrategies:

pt+1(s) = pt(s)As · pt

pTt ·A · pt

s ∈ {C,D, T}

The change in the proportion of each strategy is proportional toits performance (numerator) relative to the averageperformance (denominator)

Xavier Vilà Genetic Algorithms and Game Theory

Page 97: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Interpretation

Consider the replicator dynamics to represent the evolution ofstrategies:

pt+1(s) = pt(s)As · pt

pTt ·A · pt

s ∈ {C,D, T}

The change in the proportion of each strategy is proportional toits performance (numerator) relative to the averageperformance (denominator)

Xavier Vilà Genetic Algorithms and Game Theory

Page 98: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Interpretation

Consider the replicator dynamics to represent the evolution ofstrategies:

pt+1(s) = pt(s)As · pt

pTt ·A · pt

s ∈ {C,D, T}

The change in the proportion of each strategy is proportional toits performance (numerator) relative to the averageperformance (denominator)

Xavier Vilà Genetic Algorithms and Game Theory

Page 99: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Interpretation

Behavior of the system:

Xavier Vilà Genetic Algorithms and Game Theory

Page 100: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Interpretation

Behavior of the system:

Xavier Vilà Genetic Algorithms and Game Theory

Page 101: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Interpretation

Behavior of the system:

Xavier Vilà Genetic Algorithms and Game Theory

Page 102: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Interpretation

Behavior of the system:

Xavier Vilà Genetic Algorithms and Game Theory

Page 103: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Interpretation

Behavior of the system:

Xavier Vilà Genetic Algorithms and Game Theory

Page 104: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Interpretation

Behavior of the system:

Xavier Vilà Genetic Algorithms and Game Theory

Page 105: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Interpretation

Behavior of the system:

Xavier Vilà Genetic Algorithms and Game Theory

Page 106: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Different Crossovers (changing Rounds)

Xavier Vilà Genetic Algorithms and Game Theory

Page 107: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Different Crossovers (changing Rounds)

Xavier Vilà Genetic Algorithms and Game Theory

Page 108: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Different Crossovers (changing Rounds)

Xavier Vilà Genetic Algorithms and Game Theory

Page 109: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Different Crossovers (changing Rounds)

Xavier Vilà Genetic Algorithms and Game Theory

Page 110: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Different Crossovers (changing Rounds)

Xavier Vilà Genetic Algorithms and Game Theory

Page 111: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Canonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

Different Crossovers (changing Rounds)

Xavier Vilà Genetic Algorithms and Game Theory

Page 112: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Outline

1 MotivationMethodological MotivationEconomical Motivation

2 Genetic AlgorithmsCanonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

3 Application: Imperfect CompetitionThe ModelThe Deterministic ApproachThe Simulation Approach

Xavier Vilà Genetic Algorithms and Game Theory

Page 113: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Buyers and Sellers

Sellers

Two SELLERS offering the same good compete repeatedly insome attribute (price in this example)

Buyers

m BUYERS Look for the best attribute and shop from thecorresponding SELLER. In the case the two SELLERS offer thesame attribute, BUYERS can decide to shop from the sameSELLER as before (loyalty) or decide randomly

Xavier Vilà Genetic Algorithms and Game Theory

Page 114: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Buyers and Sellers

Sellers

Two SELLERS offering the same good compete repeatedly insome attribute (price in this example)

Buyers

m BUYERS Look for the best attribute and shop from thecorresponding SELLER. In the case the two SELLERS offer thesame attribute, BUYERS can decide to shop from the sameSELLER as before (loyalty) or decide randomly

Xavier Vilà Genetic Algorithms and Game Theory

Page 115: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

The Model

2 sellersm buyersT periods, R rounds per period (Example: 54 weeks, 5rounds per week)Sellers’ strategies per period

Set a price for Round = 1For Round > 1, set a price based on previous rounds of theperiodprice ∈ {p̄, p}

Buyers’ strategies per periodAlways go to the cheapest sellerIf prices are equal:

Randomly splitBe “Loyal”

Xavier Vilà Genetic Algorithms and Game Theory

Page 116: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

The Model

2 sellersm buyersT periods, R rounds per period (Example: 54 weeks, 5rounds per week)Sellers’ strategies per period

Set a price for Round = 1For Round > 1, set a price based on previous rounds of theperiodprice ∈ {p̄, p}

Buyers’ strategies per periodAlways go to the cheapest sellerIf prices are equal:

Randomly splitBe “Loyal”

Xavier Vilà Genetic Algorithms and Game Theory

Page 117: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

The Model

2 sellersm buyersT periods, R rounds per period (Example: 54 weeks, 5rounds per week)Sellers’ strategies per period

Set a price for Round = 1For Round > 1, set a price based on previous rounds of theperiodprice ∈ {p̄, p}

Buyers’ strategies per periodAlways go to the cheapest sellerIf prices are equal:

Randomly splitBe “Loyal”

Xavier Vilà Genetic Algorithms and Game Theory

Page 118: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

The Model

2 sellersm buyersT periods, R rounds per period (Example: 54 weeks, 5rounds per week)Sellers’ strategies per period

Set a price for Round = 1For Round > 1, set a price based on previous rounds of theperiodprice ∈ {p̄, p}

Buyers’ strategies per periodAlways go to the cheapest sellerIf prices are equal:

Randomly splitBe “Loyal”

Xavier Vilà Genetic Algorithms and Game Theory

Page 119: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

The Model

2 sellersm buyersT periods, R rounds per period (Example: 54 weeks, 5rounds per week)Sellers’ strategies per period

Set a price for Round = 1For Round > 1, set a price based on previous rounds of theperiodprice ∈ {p̄, p}

Buyers’ strategies per periodAlways go to the cheapest sellerIf prices are equal:

Randomly splitBe “Loyal”

Xavier Vilà Genetic Algorithms and Game Theory

Page 120: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

The Model

2 sellersm buyersT periods, R rounds per period (Example: 54 weeks, 5rounds per week)Sellers’ strategies per period

Set a price for Round = 1For Round > 1, set a price based on previous rounds of theperiodprice ∈ {p̄, p}

Buyers’ strategies per periodAlways go to the cheapest sellerIf prices are equal:

Randomly splitBe “Loyal”

Xavier Vilà Genetic Algorithms and Game Theory

Page 121: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

The Model

2 sellersm buyersT periods, R rounds per period (Example: 54 weeks, 5rounds per week)Sellers’ strategies per period

Set a price for Round = 1For Round > 1, set a price based on previous rounds of theperiodprice ∈ {p̄, p}

Buyers’ strategies per periodAlways go to the cheapest sellerIf prices are equal:

Randomly splitBe “Loyal”

Xavier Vilà Genetic Algorithms and Game Theory

Page 122: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

The Model

2 sellersm buyersT periods, R rounds per period (Example: 54 weeks, 5rounds per week)Sellers’ strategies per period

Set a price for Round = 1For Round > 1, set a price based on previous rounds of theperiodprice ∈ {p̄, p}

Buyers’ strategies per periodAlways go to the cheapest sellerIf prices are equal:

Randomly splitBe “Loyal”

Xavier Vilà Genetic Algorithms and Game Theory

Page 123: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

The Model

2 sellersm buyersT periods, R rounds per period (Example: 54 weeks, 5rounds per week)Sellers’ strategies per period

Set a price for Round = 1For Round > 1, set a price based on previous rounds of theperiodprice ∈ {p̄, p}

Buyers’ strategies per periodAlways go to the cheapest sellerIf prices are equal:

Randomly splitBe “Loyal”

Xavier Vilà Genetic Algorithms and Game Theory

Page 124: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

The Model

2 sellersm buyersT periods, R rounds per period (Example: 54 weeks, 5rounds per week)Sellers’ strategies per period

Set a price for Round = 1For Round > 1, set a price based on previous rounds of theperiodprice ∈ {p̄, p}

Buyers’ strategies per periodAlways go to the cheapest sellerIf prices are equal:

Randomly splitBe “Loyal”

Xavier Vilà Genetic Algorithms and Game Theory

Page 125: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

The Model

2 sellersm buyersT periods, R rounds per period (Example: 54 weeks, 5rounds per week)Sellers’ strategies per period

Set a price for Round = 1For Round > 1, set a price based on previous rounds of theperiodprice ∈ {p̄, p}

Buyers’ strategies per periodAlways go to the cheapest sellerIf prices are equal:

Randomly splitBe “Loyal”

Xavier Vilà Genetic Algorithms and Game Theory

Page 126: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

The Model

2 sellersm buyersT periods, R rounds per period (Example: 54 weeks, 5rounds per week)Sellers’ strategies per period

Set a price for Round = 1For Round > 1, set a price based on previous rounds of theperiodprice ∈ {p̄, p}

Buyers’ strategies per periodAlways go to the cheapest sellerIf prices are equal:

Randomly splitBe “Loyal”

Xavier Vilà Genetic Algorithms and Game Theory

Page 127: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Outline

1 MotivationMethodological MotivationEconomical Motivation

2 Genetic AlgorithmsCanonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

3 Application: Imperfect CompetitionThe ModelThe Deterministic ApproachThe Simulation Approach

Xavier Vilà Genetic Algorithms and Game Theory

Page 128: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Strategies

Strategies for the Sellers

s ∈ {C,D, T}

C: Always set a high price(always cooperate)

D: Always set a low price(always defect)

T : Tit for Tat (start with ahigh price and then imitateyour opponent)

Strategies for the Buyers

Go for cheap

If indifferent

RandomizeBe “Loyal”

Xavier Vilà Genetic Algorithms and Game Theory

Page 129: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Strategies

Strategies for the Sellers

s ∈ {C,D, T}

C: Always set a high price(always cooperate)

D: Always set a low price(always defect)

T : Tit for Tat (start with ahigh price and then imitateyour opponent)

Strategies for the Buyers

Go for cheap

If indifferent

RandomizeBe “Loyal”

Xavier Vilà Genetic Algorithms and Game Theory

Page 130: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

System

Parameters

p̄ = 3 (5)

p = 2

m = 2

Payoff Matrix

A =

3R 0 3R4R 2R 4 + 2(R− 1)3R 2(R− 1) 3R

Dynamics

pt+1(s) = pt(s)As · pt

pTt ·A · pt

Xavier Vilà Genetic Algorithms and Game Theory

Page 131: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

System

Parameters

p̄ = 3 (5)

p = 2

m = 2

Payoff Matrix

A =

3R 0 3R4R 2R 4 + 2(R− 1)3R 2(R− 1) 3R

Dynamics

pt+1(s) = pt(s)As · pt

pTt ·A · pt

Xavier Vilà Genetic Algorithms and Game Theory

Page 132: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

System

Parameters

p̄ = 3 (5)

p = 2

m = 2

Payoff Matrix

A =

3R 0 3R4R 2R 4 + 2(R− 1)3R 2(R− 1) 3R

Dynamics

pt+1(s) = pt(s)As · pt

pTt ·A · pt

Xavier Vilà Genetic Algorithms and Game Theory

Page 133: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results: Non-Loyal Buyers (p̄ = 3)

D

T C

Xavier Vilà Genetic Algorithms and Game Theory

Page 134: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results: Loyal Buyers (p̄ = 3)

D

T C

Xavier Vilà Genetic Algorithms and Game Theory

Page 135: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results: Loyal Buyers and Tat for Tit Sellers (p̄ = 3)

D

Ta C

Xavier Vilà Genetic Algorithms and Game Theory

Page 136: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results: Non-Loyal Buyers (p̄ = 5)

D

T C

Xavier Vilà Genetic Algorithms and Game Theory

Page 137: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results: Loyal Buyers (p̄ = 5)

D

T C

Xavier Vilà Genetic Algorithms and Game Theory

Page 138: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results: Loyal Buyers and Tat for Tit Sellers (p̄ = 5)

D

TaC

Xavier Vilà Genetic Algorithms and Game Theory

Page 139: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results

Main conclusion

It makes sense for the consumers to be loyal for that makes thesellers behave in such a way that competition works in the bestinterest of the consumers, that is, they get low prices.

Comments

Xavier Vilà Genetic Algorithms and Game Theory

Page 140: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results

Main conclusion

It makes sense for the consumers to be loyal for that makes thesellers behave in such a way that competition works in the bestinterest of the consumers, that is, they get low prices.

Comments

Xavier Vilà Genetic Algorithms and Game Theory

Page 141: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results

Main conclusion

It makes sense for the consumers to be loyal for that makes thesellers behave in such a way that competition works in the bestinterest of the consumers, that is, they get low prices.

Comments

Only 3 strategies for the seller at a time

Xavier Vilà Genetic Algorithms and Game Theory

Page 142: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results

Main conclusion

It makes sense for the consumers to be loyal for that makes thesellers behave in such a way that competition works in the bestinterest of the consumers, that is, they get low prices.

Comments

Only 3 strategies for the seller at a time

Extremely rational buyers

Xavier Vilà Genetic Algorithms and Game Theory

Page 143: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results

On the other hand ...

Very difficult to generalize

What other strategies ?

How to deal with these dynamics

What other prices ?

What about buyers’ “rationality” ?

Xavier Vilà Genetic Algorithms and Game Theory

Page 144: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results

On the other hand ...

Very difficult to generalize

What other strategies ?

How to deal with these dynamics

What other prices ?

What about buyers’ “rationality” ?

Xavier Vilà Genetic Algorithms and Game Theory

Page 145: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results

On the other hand ...

Very difficult to generalize

What other strategies ?

How to deal with these dynamics

What other prices ?

What about buyers’ “rationality” ?

Xavier Vilà Genetic Algorithms and Game Theory

Page 146: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results

On the other hand ...

Very difficult to generalize

What other strategies ?

How to deal with these dynamics

What other prices ?

What about buyers’ “rationality” ?

Xavier Vilà Genetic Algorithms and Game Theory

Page 147: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results

On the other hand ...

Very difficult to generalize

What other strategies ?

How to deal with these dynamics

What other prices ?

What about buyers’ “rationality” ?

Xavier Vilà Genetic Algorithms and Game Theory

Page 148: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Outline

1 MotivationMethodological MotivationEconomical Motivation

2 Genetic AlgorithmsCanonical Genetic AlgorithmsModified Genetic AlgorithmsAn Example: The Repeated Prisoners’ DilemmaInterpretation: What are we simulating ?

3 Application: Imperfect CompetitionThe ModelThe Deterministic ApproachThe Simulation Approach

Xavier Vilà Genetic Algorithms and Game Theory

Page 149: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Strategies

Strategies represented by FINITE AUTOMATA

Sellers

Set a high price (p̄) or a low price (p) depending on thebehavior of your competitor in the past

Buyers

Remain loyal to your current Seller or switch to its competitordepending on whether the price set by your current Seller islower, equal, or higher than that of its competitor

Xavier Vilà Genetic Algorithms and Game Theory

Page 150: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Strategies

Strategies represented by FINITE AUTOMATA

Sellers

Set a high price (p̄) or a low price (p) depending on thebehavior of your competitor in the past

Buyers

Remain loyal to your current Seller or switch to its competitordepending on whether the price set by your current Seller islower, equal, or higher than that of its competitor

Xavier Vilà Genetic Algorithms and Game Theory

Page 151: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Strategies

Strategies represented by FINITE AUTOMATA

Sellers

Set a high price (p̄) or a low price (p) depending on thebehavior of your competitor in the past

Buyers

Remain loyal to your current Seller or switch to its competitordepending on whether the price set by your current Seller islower, equal, or higher than that of its competitor

Xavier Vilà Genetic Algorithms and Game Theory

Page 152: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Sketch of the Algorithm

Two initial populations (Sellers and buyers)

1 Randomly match two strategies in the sellers population2 Bring each of these pairs to a simulated market

1 The market opens R times2 At each round, the sellers set prices according to strategies

and buyers decide seller3 Trade takes place and players get they payoff for the period

3 Form new populations

1 Include the 50% top performers2 Create the remaining 50%

1 Randomly select two “parents” based on performance2 Form two new strategies by CROSSOVER3 Apply MUTATION4 Repeat the steps above to fill the new population

Xavier Vilà Genetic Algorithms and Game Theory

Page 153: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Parameters

Case 3A: p = 3 p = 2 c = 0Case 3B: p = 3 p = 2 c = 1Case 3C: p = 3 p = 2 c = 1.5Case 4A: p = 4 p = 2 c = 0Case 4B: p = 4 p = 2 c = 2Case 4C: p = 4 p = 2 c = 3Case 5A: p = 5 p = 2 c = 0Case 5B: p = 5 p = 2 c = 3Case 5C: p = 5 p = 2 c = 4.5

Xavier Vilà Genetic Algorithms and Game Theory

Page 154: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Parameters

Case 3A: p = 3 p = 2 c = 0Case 3B: p = 3 p = 2 c = 1Case 3C: p = 3 p = 2 c = 1.5Case 4A: p = 4 p = 2 c = 0Case 4B: p = 4 p = 2 c = 2Case 4C: p = 4 p = 2 c = 3Case 5A: p = 5 p = 2 c = 0Case 5B: p = 5 p = 2 c = 3Case 5C: p = 5 p = 2 c = 4.5

Xavier Vilà Genetic Algorithms and Game Theory

Page 155: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Parameters

Case 3A: p = 3 p = 2 c = 0Case 3B: p = 3 p = 2 c = 1Case 3C: p = 3 p = 2 c = 1.5Case 4A: p = 4 p = 2 c = 0Case 4B: p = 4 p = 2 c = 2Case 4C: p = 4 p = 2 c = 3Case 5A: p = 5 p = 2 c = 0Case 5B: p = 5 p = 2 c = 3Case 5C: p = 5 p = 2 c = 4.5

Xavier Vilà Genetic Algorithms and Game Theory

Page 156: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results Case 3A (p = 3 p = 2 c = 0)

0

5

10

15

20

25

30

35

0 50 100 150 200 250 300 350 400 450 500

Buyers

900

1000

1100

1200

1300

1400

1500

1600

1700

1800

0 50 100 150 200 250 300 350 400 450 500

Sellers

Xavier Vilà Genetic Algorithms and Game Theory

Page 157: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results Case 3B (p = 3 p = 2 c = 1)

-5

0

5

10

15

20

25

30

35

0 50 100 150 200 250 300 350 400 450 500

Buyers

800

1000

1200

1400

1600

1800

2000

2200

0 50 100 150 200 250 300 350 400 450 500

Sellers

Xavier Vilà Genetic Algorithms and Game Theory

Page 158: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results Case 3C (p = 3 p = 2 c = 1.5)

-0.5

0

0.5

1

1.5

2

2.5

3

0 50 100 150 200 250 300 350 400 450 500

Buyers

1200

1250

1300

1350

1400

1450

1500

1550

0 50 100 150 200 250 300 350 400 450 500

Sellers

Xavier Vilà Genetic Algorithms and Game Theory

Page 159: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results Case 4A (p = 4 p = 2 c = 0)

0

10

20

30

40

50

60

70

0 50 100 150 200 250 300 350 400 450 500

Buyers

800

1000

1200

1400

1600

1800

2000

2200

0 50 100 150 200 250 300 350 400 450 500

Sellers

Xavier Vilà Genetic Algorithms and Game Theory

Page 160: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results Case 4B (p = 4 p = 2 c = 2)

-10

0

10

20

30

40

50

60

70

0 50 100 150 200 250 300 350 400 450 500

Buyers

800

1000

1200

1400

1600

1800

2000

2200

0 50 100 150 200 250 300 350 400 450 500

Sellers

Xavier Vilà Genetic Algorithms and Game Theory

Page 161: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results Case 4C (p = 4 p = 2 c = 3)

-12

-10

-8

-6

-4

-2

0

2

4

6

0 50 100 150 200 250 300 350 400 450 500

Buyers

1400

1500

1600

1700

1800

1900

2000

2100

0 50 100 150 200 250 300 350 400 450 500

Sellers

Xavier Vilà Genetic Algorithms and Game Theory

Page 162: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results Case 5A (p = 5 p = 2 c = 0)

0

10

20

30

40

50

60

70

0 50 100 150 200 250 300 350 400 450 500

Buyers

1400

1600

1800

2000

2200

2400

2600

0 50 100 150 200 250 300 350 400 450 500

Sellers

Xavier Vilà Genetic Algorithms and Game Theory

Page 163: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results Case 5B (p = 5 p = 2 c = 3)

-20

0

20

40

60

80

100

0 50 100 150 200 250 300 350 400 450 500

Buyers

800

1000

1200

1400

1600

1800

2000

2200

2400

2600

0 50 100 150 200 250 300 350 400 450 500

Sellers

Xavier Vilà Genetic Algorithms and Game Theory

Page 164: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results Case 5C (p = 5 p = 2 c = 4.5)

-10

-5

0

5

10

15

0 50 100 150 200 250 300 350 400 450 500

Buyers

1700

1800

1900

2000

2100

2200

2300

2400

2500

2600

0 50 100 150 200 250 300 350 400 450 500

Sellers

Xavier Vilà Genetic Algorithms and Game Theory

Page 165: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results Explained (Cases *A)

The buyers will buy from the cheapest seller and will stay withtheir current ones if prices are equal (loyalty strategy). Thesellers will set a low price regardless the price set by theopponent in the previous round (always defect strategy, D).The only difference is when the low price is too low comparedto the high price that the sellers are better off by chargingalways the high price. (Case 5A).

Xavier Vilà Genetic Algorithms and Game Theory

Page 166: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results Explained (Cases *B)

The buyers will buy from the cheapest seller and will stay withtheir current ones if prices are equal (loyalty strategy). Thesellers will set a low price regardless the price set by theopponent in the previous round (always defect strategy, D). Inthis case, the fact that consumers have a switching cost equalto the difference between the two prices , does not make them“more loyal” in the sense of make them wiling to stick to a sellergiven that there is no possible gain by switching to another.They do not want to do that because then the sellers wouldhave some sort of monopolistic power as the next caseindicates.

Xavier Vilà Genetic Algorithms and Game Theory

Page 167: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results Explained (Cases *C)

The switching cost is so high that the buyers will not switch, noteven in the case that someone else offers a better price. Then,sellers take advantage of this monopolistic power and set ahigh price (always cooperate strategy, C).

Xavier Vilà Genetic Algorithms and Game Theory

Page 168: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results

Main conclusion

It makes sense for the consumers to be loyal for that makes thesellers behave in such a way that competition works in the bestinterest of the consumers, that is, they get low prices.

Xavier Vilà Genetic Algorithms and Game Theory

Page 169: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results

Main conclusion

Same conclusion as before in the analogous case (Case 3A).Furthermore, other cases are studied and the model can behandled with much more flexibility

Xavier Vilà Genetic Algorithms and Game Theory

Page 170: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results

Comments

Only 3 strategies for the seller at a time

Extremely rational buyers

Xavier Vilà Genetic Algorithms and Game Theory

Page 171: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

The ModelThe Deterministic ApproachThe Simulation Approach

Results

Comments

Many (26) strategies considered (could be more easily,nothing changes)Buyers and Sellers coevolve simultaneously

Xavier Vilà Genetic Algorithms and Game Theory

Page 172: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Summary

Summary

Simulation techniques (Agent-Based ComputationalEconomics) are increasingly used, but some care shouldbe taken into account to really understand what we aresimulating

Some Agent-Based Computational Economics techniques(GA in this case) seem to perform similarly to analyticaltechniques yet provide ways to overcome their limitations

Furher work should produce ways to “understand” theoutput of simulations

Xavier Vilà Genetic Algorithms and Game Theory

Page 173: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Summary

Summary

Simulation techniques (Agent-Based ComputationalEconomics) are increasingly used, but some care shouldbe taken into account to really understand what we aresimulating

Some Agent-Based Computational Economics techniques(GA in this case) seem to perform similarly to analyticaltechniques yet provide ways to overcome their limitations

Furher work should produce ways to “understand” theoutput of simulations

Xavier Vilà Genetic Algorithms and Game Theory

Page 174: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Summary

Summary

Simulation techniques (Agent-Based ComputationalEconomics) are increasingly used, but some care shouldbe taken into account to really understand what we aresimulating

Some Agent-Based Computational Economics techniques(GA in this case) seem to perform similarly to analyticaltechniques yet provide ways to overcome their limitations

Furher work should produce ways to “understand” theoutput of simulations

Xavier Vilà Genetic Algorithms and Game Theory

Page 175: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

MotivationGenetic Algorithms

Application: Imperfect CompetitionSummary

Summary

Summary

Simulation techniques (Agent-Based ComputationalEconomics) are increasingly used, but some care shouldbe taken into account to really understand what we aresimulating

Some Agent-Based Computational Economics techniques(GA in this case) seem to perform similarly to analyticaltechniques yet provide ways to overcome their limitations

Furher work should produce ways to “understand” theoutput of simulations

Xavier Vilà Genetic Algorithms and Game Theory

Page 176: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

Appendix For Further Reading

For Further Reading I

Goldberg, D.E.Genetic Algorithms in Search, Optimization & MachineLearningAddison–Wesley.(1989)

Vilà, X.Artificial Adaptive Agents play a finitely repeated discretePrincipal-Agent game.In R. Conte, R. Hegselmann and P. Terna, eds: SimulatingSocial Phenomena. Lecture Notes in Economics andMathematical Systems. Springer-Verlag. Berlin. (1997).

Xavier Vilà Genetic Algorithms and Game Theory

Page 177: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

Appendix For Further Reading

For Further Reading II

Ferdinandova, I.On the Influence of Consumers’ Habits on MarketStructure.Mimeo. Universitat Autònoma de Barcelona. (2003)

Foster, D. and H. Peyton Young.Cooperation in the short and the long run.Games and economic behavior. No. 3. (1991)

Harrington, J. E. and Chang, Myong-Hun.Co-Evolution of Firms and Consumers and the Implicationsfor Market Dominance.Journal of Economic Dynamics and Control (2005)

Xavier Vilà Genetic Algorithms and Game Theory

Page 178: Genetic Algorithms and Game Theory - UABpareto.uab.es/xvila/2007-2008/ETSE/GA1.pdf · Motivation Genetic Algorithms Application: Imperfect Competition Summary Genetic Algorithms and

Appendix For Further Reading

For Further Reading III

Hehenkamp, B.Sluggish Consumers: An Evolutionary Solution to theBertrand Paradox.Games and Economic Behavior, 40, 44-76, (2002).

Miller, J.The evolution of automata in the repeated prisoner’sdilemma.Journal of Economic Behavior and Organization. (1996).

Rubinstein, A.Finite automata play the repeated prisoner’s dilemma.Journal of Economic Theory, No. 39, (1986).

Xavier Vilà Genetic Algorithms and Game Theory