public class Utilitarian extends BimatrixEquilibriumSolver
doubleEpislon, lastColPlayerPayoff, lastColsStrategy, lastRowPlayerPayoff, lastRowStrategy
Constructor and Description |
---|
Utilitarian() |
Modifier and Type | Method and Description |
---|---|
double[] |
computeColStrategy(double[][] rowPayoff,
double[][] colPayoff)
Computes and returns the column player strategy for the given bimatrix game.
|
double[] |
computeRowStrategy(double[][] rowPayoff,
double[][] colPayoff)
Computes and returns the row player strategy for the given bimatrix game.
|
bimatrixEqualsLast, doubleEquality, getLastComputedColStrategy, getLastComputedRowStrategy, solve
public double[] computeRowStrategy(double[][] rowPayoff, double[][] colPayoff)
BimatrixEquilibriumSolver
computeRowStrategy
in class BimatrixEquilibriumSolver
rowPayoff
- the row player payoffs.colPayoff
- the column player payoffs.public double[] computeColStrategy(double[][] rowPayoff, double[][] colPayoff)
BimatrixEquilibriumSolver
computeColStrategy
in class BimatrixEquilibriumSolver
rowPayoff
- the row player payoffs.colPayoff
- the column player payoffs.