SALPMPE
Class Profit10

java.lang.Object
  extended by SALPMPE.Profit10

public class Profit10
extends java.lang.Object

Defines the single period profit function for the capacity competition model.

Version:
2.0

Field Summary
(package private) static double[] qbar
          Array of capacities associated to quality levels
 
Constructor Summary
Profit10()
          Defines a new instance of the profit function.
 
Method Summary
 double[] fsolve(int[] s)
          Newton method implementation to solve for equilibrium quantities for capacity competition model.
 double[] mshare(int[] s)
          Computes industry equilibrium market shares for the single-period quantity competition game.
 double[] profit(int[] s)
          Computes industry equilibrium profits for the single-period quantity competition game.
 double[] surplus(int[] s)
          Computes industry equilibrium consumer surplus for the single-period quantity competition game.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

qbar

static double[] qbar
Array of capacities associated to quality levels

Constructor Detail

Profit10

public Profit10()
Defines a new instance of the profit function.

Method Detail

profit

public double[] profit(int[] s)
Computes industry equilibrium profits for the single-period quantity competition game.

Parameters:
s - Industry state.
Returns:
Profit vector.

mshare

public double[] mshare(int[] s)
Computes industry equilibrium market shares for the single-period quantity competition game.

Parameters:
s - Industry state.
Returns:
Market share vector.

surplus

public double[] surplus(int[] s)
Computes industry equilibrium consumer surplus for the single-period quantity competition game.

Parameters:
s - Industry state.
Returns:
Consumer surplus vector.

fsolve

public double[] fsolve(int[] s)
Newton method implementation to solve for equilibrium quantities for capacity competition model.

Parameters:
s - Industry state.
Xtol - Quantity tolerance.
Returns:
Vector of equilibrium quantities.