|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.princeton.repeatedgames.rgsolve.RGSolveMathematica
public class RGSolveMathematica
These methods return commands for Mathematica and Matlab for finding exact algebraic solutions for V* given an approximate numerical solution. It can also print the system of equations for inclusion in a LaTeX document.
| Nested Class Summary | |
|---|---|
private static class |
RGSolveMathematica.SOFTWARE
An enum type for which software to generate code for |
| Constructor Summary | |
|---|---|
private |
RGSolveMathematica()
private constructor |
| Method Summary | |
|---|---|
private static java.lang.String |
fracFormat(Fraction frac,
boolean isLaTeX)
TODO Put here a description of what this method does. |
private static java.lang.String |
getEquationSystem(Game game,
GameExtremePoint[] V_star,
int[] BR1,
int[] BR2,
RGSolveMathematica.SOFTWARE software)
Returns the command for the the software in software's
algebraic solver to find the exact solution to the system of equations
defining V*, a system derived from the extreme points (and how they are generated)
stored in V_star |
static java.lang.String |
getLatexCommand(Game game,
GameExtremePoint[] V_star)
Returns the LaTeX code for the system of equations defining V*, a system derived from the extreme points (and how they are generated) stored in V_star |
static java.lang.String |
getLatexCommand(Game game,
GameExtremePoint[] V_star,
int[] BR1,
int[] BR2)
Returns the LaTeX code for the system of equations defining V*, a system derived from the extreme points (and how they are generated) stored in V_star |
static java.lang.String |
getMathematicaCommand(Game game,
GameExtremePoint[] V_star)
Returns the Mathematica command for the Mathematica algebraic solver to find the exact solution to the system of equations defining V*, a system derived from the extreme points (and how they are generated) stored in V_star |
static java.lang.String |
getMathematicaCommand(Game game,
GameExtremePoint[] V_star,
int[] BR1,
int[] BR2)
Returns the Mathematica command for the Mathematica algebraic solver to find the exact solution to the system of equations defining V*, a system derived from the extreme points (and how they are generated) stored in V_star |
static java.lang.String |
getMatlabCommand(Game game,
GameExtremePoint[] V_star)
Returns the Matlab command for the Matlab algebraic solver to find the exact solution to the system of equations defining V*, a system derived from the extreme points (and how they are generated) stored in V_star |
static java.lang.String |
getMatlabCommand(Game game,
GameExtremePoint[] V_star,
int[] BR1,
int[] BR2)
Returns the Matlab command for the Matlab algebraic solver to find the exact solution to the system of equations defining V*, a system derived from the extreme points (and how they are generated) stored in V_star |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
private RGSolveMathematica()
| Method Detail |
|---|
public static java.lang.String getMathematicaCommand(Game game,
GameExtremePoint[] V_star,
int[] BR1,
int[] BR2)
V_star
game - the Game associated with the solution V_starV_star - An array of extreme points representing the approximate solutionBR1 - best response vector for player 1BR2 - best response vector for player 2
public static java.lang.String getMatlabCommand(Game game,
GameExtremePoint[] V_star,
int[] BR1,
int[] BR2)
V_star
game - the Game associated with the solution V_starV_star - An array of extreme points representing the approximate solutionBR1 - best response vector for player 1BR2 - best response vector for player 2
public static java.lang.String getMathematicaCommand(Game game,
GameExtremePoint[] V_star)
V_star
game - the Game associated with the solution V_starV_star - An array of extreme points representing the approximate solution
public static java.lang.String getMatlabCommand(Game game,
GameExtremePoint[] V_star)
V_star
game - the Game associated with the solution V_starV_star - An array of extreme points representing the approximate solution
public static java.lang.String getLatexCommand(Game game,
GameExtremePoint[] V_star)
V_star
game - the Game associated with the solution V_starV_star - An array of extreme points representing the approximate solution
public static java.lang.String getLatexCommand(Game game,
GameExtremePoint[] V_star,
int[] BR1,
int[] BR2)
V_star
game - the Game associated with the solution V_starV_star - An array of extreme points representing the approximate solutionBR1 - best response vector for player 1BR2 - best response vector for player 2
private static java.lang.String getEquationSystem(Game game,
GameExtremePoint[] V_star,
int[] BR1,
int[] BR2,
RGSolveMathematica.SOFTWARE software)
software's
algebraic solver to find the exact solution to the system of equations
defining V*, a system derived from the extreme points (and how they are generated)
stored in V_star
game - the Game associated with the solution V_starV_star - An array of extreme points representing the approximate solutionBR1 - best response vector for player 1BR2 - best response vector for player 2software - which software to use, Mathematica or Matlab
private static java.lang.String fracFormat(Fraction frac,
boolean isLaTeX)
subtract - isLaTeX -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||