Gambit: Software Tools for Game Theory | ||
---|---|---|
<<< Previous | Command Language Function Reference | Next >>> |
This section contains a list of functions organized by category. For a description of each function and its arguments, refer to the following, alphabetically organized, section.
In the GCL, we have tried to minimize the number of built-in functions to include only those that are essential. The idea is that any other function can be built up as a user defined function from the built-in functions. As part of the GCL distribution, we provide a library of useful user defined functions in the file \verb+stdudfs.gcl+. If the line \verb+Include["stdudfs.gcl"]+ is in the \verb+gclini.gcl+ file, then this file is loaded when the GCL is started. The user can also load their own set of user defined functions by adding a line \verb+Include["myudfs.gcl"]+
The reason for minimizing the number of built-in funcitons is that it allows for greater flexibility of use of the GCL, and minimizes clogging up of the space of functions names. It is much easier for users to modify or redefine user defined functions to suit their particular purpose than to modify built-in functions. Also, this approach makes it possible to run a ``stripped down'' version of the GCL if memory is a premium, by just not including unused user defined functions.
The cost to the above approach is that user defined functions can take longer to execute than a corresponding built-in function with the same functionality.
Much of the development of the GCL is based on our own computational experience, and tends to be optimized with respect to the kinds of problems we encounter. However, it may not be optimized for the type of problems you find interesting. If you find that certain operations in the GCL are unacceptably slow, we would appreciate getting feedback on this.
Display (user-defined) | |
Format | |
GetFormat | |
GetListFormat | |
GetIntegerFormat (user-defined) | |
GetNumericFormat (user-defined) | |
GetSolutionFormat (user-defined) | |
GetTextFormat (user-defined) | |
Input | |
IsEof | |
ListFormat | |
LoadEfg | |
LoadNfg | |
Output | |
Read | |
Read (user-defined) | |
ReadText | |
SaveEfg | |
SaveNfg | |
SetIntegerFormat (user-defined) | |
SetListFormat (user-defined) | |
SetNumericFormat (user-defined) | |
SetSolutionFormat (user-defined) | |
SetTextFormat (user-defined) | |
Write | |
WriteSequenceForm |
AddAction | Adds an action to a support |
AddMove | Adds a move to a game at a terminal node |
AddMove (user-defined) | |
AddNode | Adds a node to a basis |
Basis | |
CompressEfg | |
CopyTree | |
DeleteAction | |
DeleteEmptyInfoset | |
DeleteEmptyInfosets (user-defined) | |
DeleteMove | |
DeleteOutcome | |
DeleteTree | |
InsertAction | |
InsertMove | |
MergeInfosets | |
MoveToInfoset | |
MoveTree | |
NewEfg | |
NewInfoset | |
NewInfoset (user-defined) | |
NewOutcome | |
NewOutcome (user-defined) | |
NewPlayer | |
NewPlayer (user-defined) | |
Randomize (user-defined) | |
RemoveAction | |
RemoveNode | |
Reveal | |
SequenceForm | |
SequenceFormConstraints | |
SequenceFormStrats | |
SetChanceProbs | |
SetComment | |
SetName | |
SetOutcome | |
SetPayoff | |
SetPayoffs (user-defined) | |
Support |
AddStrategy | Adds a strategy to a support |
AgentForm | Creates the agent normal form for an extensive form game |
CompressNfg | |
DeleteOutcome | |
ListForm (user-defined) | |
NewNfg | |
NewNfg (user-defined) | |
NewOutcome | |
NewOutcome (user-defined) | |
NewPlayer | |
NewPlayer (user-defined) | |
Nfg | |
Nfg (user-defined) | |
OutcomeForm (user-defined) | |
Randomize (user-defined) | |
RemoveStrategy | |
SetComment | |
SetName | |
SetOutcome | |
SetPayoff | |
SetPayoffs (user-defined) | |
Support |
ActionNumber | native | Returns the index of an action in a support or basis |
ActionNumber | stdudfs.gcl | |
Actions | native | Returns the list of actions in a support at an information set |
Actions | stdudfs.gcl | |
AllActions | stdudfs.gcl | |
AllInfosets | stdudfs.gcl | |
AllMembers | stdudfs.gcl | |
Ancestors | stdudfs.gcl | |
Centroid | stdudfs.gcl | |
Chance | native | |
ChanceProb | native | |
Children | native | |
Comment | native | |
Descendants | stdudfs.gcl | |
Game | native | |
History | stdudfs.gcl | |
Infoset | native | |
Infosets | native | |
Infosets | stdudfs.gcl | |
IsConsistent | native | |
IsConstSum | native | |
IsNull | native | |
IsPerfectRecall | native | |
IsPredecessor | native | |
IsRoot | stdudfs.gcl | |
IsSuccessor | native | |
Members | native | |
Members | stdudfs.gcl | |
Mixed | native | |
Mixed | stdudfs.gcl | |
Name | native | |
NextSibling | native | |
NodeNumber | native | |
Nodes | native | |
NodeTree | stdudfs.gcl | |
NonterminalNodes | stdudfs.gcl | |
NthChild | native | |
NumActions | stdudfs.gcl | |
NumChildren | stdudfs.gcl | |
NumMembers | stdudfs.gcl | |
NumPlayers | stdudfs.gcl | |
NumStrats | stdudfs.gcl | |
Outcome | native | |
Outcomes | native | |
Parent | native | |
Payoff | native | |
Payoffs | stdudfs.gcl | |
Player | native | |
PlayerNumber | stdudfs.gcl | |
Players | native | |
PriorAction | native | |
PriorSibling | native | |
Profiles | stdudfs.gcl | |
RootNode | native | |
Strategies | native | |
Strategies | stdudfs.gcl | |
StrategyNumber | native | |
TerminalNodes | stdudfs.gcl |
Actions | native | |
Actions | stdudfs.gcl | |
AddAction | native | |
AddStrategy | native | |
Basis | native | |
IsDominated | native | |
IterativeUnDominated | stdudfs.gcl | |
NthElement | stdudfs.gcl | |
PossibleNashSupports | native | |
RemoveAction | native | |
RemoveStrategy | native | |
Strategies | native | |
Strategies | stdudfs.gcl | |
Support | native | |
UnDominated | native | |
UnDominated | stdudfs.gcl |
EnumMixedSolve | native | |
EnumMixedSolve | stdudfs.gcl | |
EnumPureSolve | native | |
EnumPureSolve | stdudfs.gcl | |
LcpSolve | native | |
LcpSolve | stdudfs.gcl | |
LiapSolve | native | |
LiapSolve | stdudfs.gcl | |
LpSolve | native | |
LpSolve | stdudfs.gcl | |
PolEnumSolve | native | |
QreGridSolve | native | |
QreSolve | native | |
QreSolve | stdudfs.gcl | |
SimpDivSolve | native | |
SimpDivSolve | stdudfs.gcl |
Accuracy | native | |
ActionProb | native | |
ActionProbs | stdudfs.gcl | |
ActionValue | native | |
ActionValues | stdudfs.gcl | |
Behav | native | |
Behav | stdudfs.gcl | |
Belief | native | |
Beliefs | stdudfs.gcl | |
Creator | native | |
InfosetProb | native | |
InfosetProbs | stdudfs.gcl | |
InfosetValue | native | |
InfosetValues | stdudfs.gcl | |
IsNash | native | |
IsPerfect | native | |
IsSequential | native | |
IsSubgamePerfect | native | |
LiapValue | native | |
Mixed | native | |
Mixed | stdudfs.gcl | |
NodeValue | native | |
NodeValues | stdudfs.gcl | |
Payoff | native | |
Payoffs | stdudfs.gcl | |
QreLambda | native | |
QreValue | native | |
RealizProb | native | |
RealizProbs | stdudfs.gcl | |
Regret | native | |
Regrets | stdudfs.gcl | |
SetActionProbs | native | |
SetStrategyProb | native | |
SetStrategyProbs | native | |
SetProbs | stdudfs.gcl | |
StrategyProb | native | |
StrategyProbs | native | |
StrategyValue | native | |
StrategyValues | stdudfs.gcl |
<<< Previous | Home | Next >>> |
Command Language Function Reference | Up | Reference: Algorithms to Compute Nash Equilibria |