|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.princeton.repeatedgames.rgsolve.games.Game
edu.princeton.repeatedgames.rgsolve.games.specialgames.SimpleCournot
public class SimpleCournot
"A simple Cournot game with demand P(Q) = max{0, A - B * Q}, and marginal costs c1 and c2, with quantity actions on [0, A/B] and discount delta
Field Summary | |
---|---|
private double |
A
demand price intercept |
private double |
B
demand price slope |
private double[] |
c
marginal costs to players |
private double |
maxOutput
maximum output that drives price to zero |
private static long |
serialVersionUID
serialization ID |
Fields inherited from class edu.princeton.repeatedgames.rgsolve.games.Game |
---|
description, extension |
Constructor Summary | |
---|---|
SimpleCournot(int m1,
int m2,
double delta,
double A,
double B,
double c1,
double c2)
|
Method Summary | |
---|---|
double |
A()
|
double |
B()
|
double |
c(int player)
|
double |
payoff1(int a1,
int a2)
payoff to player 1 |
double |
payoff2(int a1,
int a2)
payoff to player 2 |
Methods inherited from class edu.princeton.repeatedgames.rgsolve.games.Game |
---|
actionUsable, copyUsableActions, delta, m, m1, m2, payoff, payoff, setActionUsable, setDescription, setDiscount, usableActionsDefined |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private double maxOutput
private double A
private double B
private double[] c
Constructor Detail |
---|
public SimpleCournot(int m1, int m2, double delta, double A, double B, double c1, double c2)
m1
- player 1 action numberm2
- player 2 action numberdelta
- discountA
- price equation interceptB
- price equation slopec1
- marginal cost player 1c2
- marginal cost player 2Method Detail |
---|
public double payoff1(int a1, int a2)
Game
payoff1
in class Game
a1
- player 1 actiona2
- player 2 action
public double payoff2(int a1, int a2)
Game
payoff2
in class Game
a1
- player 1 actiona2
- player 2 action
public double A()
public double B()
public double c(int player)
player
-
player
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |