File: gui.ref.html

package info (click to toggle)
gambit-doc 0.97.0-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, sarge, squeeze
  • size: 1,344 kB
  • sloc: makefile: 19; sh: 10
file content (764 lines) | stat: -rw-r--r-- 17,775 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<HTML
><HEAD
><TITLE
>Graphical Interface Reference</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.59"><LINK
REL="HOME"
TITLE="Gambit"
HREF="gambit.html"><LINK
REL="PREVIOUS"
TITLE="Finding Nash equilibria using the normal form"
HREF="gui.start.nfgnash.html"><LINK
REL="NEXT"
TITLE="Extensive form games"
HREF="gui.efg.html"></HEAD
><BODY
CLASS="CHAPTER"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Gambit: Software Tools for Game Theory</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="gui.start.nfgnash.html"
>&#60;&#60;&#60; Previous</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="gui.efg.html"
>Next &#62;&#62;&#62;</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="CHAPTER"
><H1
><A
NAME="GUI.REF"
>Graphical Interface Reference</A
></H1
><P
>This chapter covers the graphical interface in some detail.</P
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="GUI.CONV"
>Conventions used in the graphical interface</A
></H1
><P
>This section discusses features of the graphical interface which
are common between the extensive and normal forms.  For features which
are specific to the extensive form, see <A
HREF="gui.efg.html"
>the section called <I
>Extensive form games</I
></A
>, and for
features which are specific to the normal form, see <A
HREF="gui.nfg.html"
>the section called <I
>Normal form games</I
></A
>.  </P
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="GUI.CONV.STRUCTURE"
>Structure of game windows</A
></H2
><P
>Extensive and normal form windows in the graphical interface share a
common structure:
<P
></P
><UL
><LI
><P
>A game window, which displays the game tree of the extensive form
or the payoff table of the normal form;</P
></LI
><LI
><P
>A profile table, displayed when the <B
CLASS="GUIMENUITEM"
>Profiles</B
>
menu item is checked on the <B
CLASS="GUIMENU"
>View</B
> menu, which organizes
all strategy profiles currently in memory;</P
></LI
><LI
><P
>A navigation window, which displays information about the currently
selected object in the game, and can be used to navigate through the
game display;</P
></LI
><LI
><P
>An outcomes window, which lists all the outcomes currently defined in
the game, and their associated payoffs to all players;</P
></LI
><LI
><P
>A supports window, which organizes all the supports which have been
computed by dominance elimination or defined by the user</P
></LI
></UL
>
The last three windows are organized into a notebook, which is displayed
whenever any of the <B
CLASS="GUIMENUITEM"
>Navigation</B
>,
<B
CLASS="GUIMENUITEM"
>Outcomes</B
>, or <B
CLASS="GUIMENUITEM"
>Supports</B
>
menu items are checked on the <B
CLASS="GUIMENU"
>View</B
> menu.</P
><P
>Details about the game window will be left for the subsequent separate
sections addressing extensive and normal forms; the rest of this section
will look at each of the auxiliary windows in turn.</P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="GUI.CONV.PROFILES"
>Working with strategy profiles</A
></H2
><P
>The profile table organizes all mixed or behavior strategy profiles,
as appropriate, that have been computed by algorithms or entered by
the user.  Display of the profile table is togged by the checkable
menu item <B
CLASS="GUIMENUITEM"
>Profiles</B
> on the <B
CLASS="GUIMENU"
>View</B
>
menu.  The profile table is also automatically displayed when an
algorithm returns solutions.  A draggable sash along the top of the
profile table permits resizing of the profiles window to taste.</P
><P
>Each row in the table corresponds to one strategy profile.
When a profile is selected, its row is highlighted; the selected profile
is used by the game window to display strategy or action probabilities,
values, or other information.  Information about the current profile 
also appears in the <TT
CLASS="GUILABEL"
><B
>Navigate</B
></TT
> window.
Selecting a profile is done by left-clicking on the row corresponding to
the profile.</P
><P
>A variety of data dependent on the generating algorithm are available
for most mixed or behavior profiles. Not every category is relevant
for every profile.  If a certain data member is either not relevant or
not available, it will be displayed as <TT
CLASS="GUILABEL"
><B
>----</B
></TT
>.</P
><P
>Clicking with the right mouse button within the profile table 
accesses a popup menu with the following items:
<P
></P
><UL
><LI
><P
><B
CLASS="GUIMENUITEM"
>New</B
> creates a new profile and opens
a dialog to edit its properties.  All profiles created with the
<B
CLASS="GUIMENUITEM"
>New</B
> command are tagged with a creator
field of <TT
CLASS="GUILABEL"
><B
>User</B
></TT
>.</P
></LI
><LI
><P
><B
CLASS="GUIMENUITEM"
>Duplicate</B
> creates a copy of the currently
selected profile.</P
></LI
><LI
><P
><B
CLASS="GUIMENUITEM"
>Delete</B
> deletes the currently selected profile
from the list of profiles.</P
></LI
><LI
><P
><B
CLASS="GUIMENUITEM"
>Properties</B
> displays a dialog to view
and edit properties of the profile, including the probabilities assigned
to actions or strategies.  Profiles which are edited using this dialog
have their creator field reset to <TT
CLASS="GUILABEL"
><B
>User</B
></TT
>.</P
></LI
></UL
>
The <TT
CLASS="GUILABEL"
><B
>Properties</B
></TT
> dialog also appears when a profile's
entry in the table is double-clicked.</P
><P
>When both the extensive and normal form representations of a game are
displayed, the profile lists in the two windows are coordinated.
Corresponding profiles are listed in the same order in the two windows,
and operations such as changing the currently-selected profile, or
deleting a profile, change the profile list accordingly in both windows.
The mapping from normal form mixed strategies to extensive form behavior
strategies is done using Kuhn's Theorem; as such, the results are
unpredictable if the extensive form game is not of perfect recall.</P
><P
>When a game is edited and payoffs are changed, the equilibrium
fields such as <TT
CLASS="GUILABEL"
><B
>Nash</B
></TT
> will be reset.
In some cases, these will be updated to yes or no answers; in others
for which no definitive test is available, the fields will reset to
<TT
CLASS="GUILABEL"
><B
>DK</B
></TT
> (for "don't know").
When a game is edited to change the number
of information sets, actions, or strategies, all profiles are deleted.</P
><DIV
CLASS="NOTE"
><P
></P
><TABLE
CLASS="NOTE"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="./stylesheet-images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TH
ALIGN="LEFT"
VALIGN="CENTER"
><B
>Changes from previous versions</B
></TH
></TR
><TR
><TD
>&nbsp;</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>In versions prior to 0.97, this was referred to as the
<TT
CLASS="GUILABEL"
><B
>Solutions</B
></TT
> window, and appeared as a separate frame.
The nomenclature has been changed to reflect the usefulness of investigating
the properties of profiles which might not satisfy any particular solution
concepts.  Additionally, in prior versions, solutions had to be manually
mapped from a normal form back to its corresponding extensive form, and
the two solution lists were separate.</P
></TD
></TR
></TABLE
></DIV
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="GUI.CONV.SUPPORTS"
>Working with supports</A
></H2
><P
>A support is a subset of the actions (for extensive forms) or strategies
(for normal forms) of a game.  Supports are most commonly generated as the
result of computing the dominated actions or strategies in a game, but
may also be manually edited for specific purposes.</P
><P
>The supports currently defined on a game are accessible via the
<B
CLASS="GUIMENUITEM"
>Supports</B
> menu item on the <B
CLASS="GUIMENU"
>View</B
>
menu.  The support panel is in the same notebook window as the outcome
and navigation panels.</P
><P
>The main body of the support panel shows, in tree form, the actions or
strategies in the currently selected support.  In extensive form games,
the window is organized hierarchically by player, then information set;
in normal form games, by player.  Strategies or actions not present in
the current support are shown in light grey.</P
><P
>At the top of the support panel is a drop-down list of all supports
currently defined.  The first support is always the "full support",
which cannot be edited.  Selecting a support from this list makes the
support the new current support, and changes the display of the game
accordingly.  The arrow buttons next to the drop-down change the current
support to the previous or next support in the list, respectively.</P
><P
>The <B
CLASS="GUIMENUITEM"
>Dominance</B
> item on the <B
CLASS="GUIMENU"
>Tools</B
>
is used to identify actions or strategies which are dominated.  For each
iteration of elimination of dominated strategies this algorithm performs,
the corresponding support is added to the list of supports.  Therefore,
using the arrow keys to scroll through the supports after finding dominated
actions or strategies is a useful way of seeing which actions or strategies
were removed at each iteration.</P
><P
>Supports may be constructed and edited by hand as well.  Right-clicking
in the support panel displays a menu with the following options:
<P
></P
><UL
><LI
><P
><B
CLASS="GUIMENUITEM"
>Duplicate support</B
> creates a new support with
the same actions or strategies as the current support.  The new support
becomes the current support.</P
></LI
><LI
><P
><B
CLASS="GUIMENUITEM"
>Delete support</B
> deletes the current support from
the support list.  Note that the "full support" cannot be
deleted.</P
></LI
></UL
>
The actions or strategies in any support other than the 
"full support" may be edited by left-clicking on the entry
in the tree for the action or strategy, and pressing the space bar.</P
><P
>The algorithms in the <B
CLASS="GUIMENUITEM"
>Equilibrium</B
> dialog on
the <B
CLASS="GUIMENU"
>Tools</B
> menu compute Nash equilibria on the
currently selected support.  This is useful, since cutting down on the
number of actions or strategies the algorithm must consider can help
substantially in efficiency.  So long as the current support differs
from the full support only in the (possibly iterative) removal of
strictly dominated actions or strategies, algorithms will be able to
find all Nash equilibria.  So long as the current support differs from
the full support only in the (possibly iterative) removal of weakly
dominated actions or strategies, algorithms will find only Nash
equilibria (but can possibly miss equilibria involving weakly
dominated actions or strategies).  For any other support, algorithms
may return profiles which are not Nash equilibria on the whole game,
but which are Nash equilibria on the game defined by restricting the
original game to actions or strategies found in the current support.
Note that such profiles will be indicated in the profiles window with an
<TT
CLASS="GUILABEL"
><B
>N</B
></TT
> in the <TT
CLASS="GUILABEL"
><B
>Nash</B
></TT
> column.</P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="GUI.CONV.OUTCOMES"
>Working with outcomes</A
></H2
><P
>Gambit has a flexible interpretation of outcomes, particularly in
extensive form games.  Gambit permits outcomes to appear in more than
one place in a tree or normal form.  Additionally, outcomes may appear
at nonterminal nodes in a game tree, in which case payoffs are interpreted
as the incremental payoffs of reaching that point in the tree.</P
><P
>Each game has a predefined "null" outcome.  The payoff to all
players at a null outcome is defined to be zero.  New extensive form games
are created with only the null outcome; when creating a normal form game,
the New Game dialog box offers by default to create one outcome per
contingency in the normal form game.</P
><P
>Outcomes are manipulated using a grid interface accessible by the
<B
CLASS="GUIMENUITEM"
>Outcomes</B
> item on the <B
CLASS="GUIMENU"
>View</B
>
menu.  The outcomes grid functions similar to a spreadsheet.
<DIV
CLASS="NOTE"
><P
></P
><TABLE
CLASS="NOTE"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="./stylesheet-images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>There is some variance in the grid behavior between the GTK and Windows
versions of Gambit, due to variance in the wxWindows implementation.  
Hopefully this will standardize in future versions.</P
></TD
></TR
></TABLE
></DIV
></P
><P
>A new outcome is automatically created whenever the <B
CLASS="KEYCAP"
>Enter</B
>
key is pressed while on the last row of the outcomes table.  Alternately,
a new outcome can be created by right-clicking in the grid, which generates
a context menu for the outcomes window, and select 
<B
CLASS="GUIMENUITEM"
>New</B
>.
<DIV
CLASS="NOTE"
><P
></P
><TABLE
CLASS="NOTE"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="./stylesheet-images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>For GTK users: A quirk in GTK causes a <B
CLASS="KEYCAP"
>CTRL</B
>-<B
CLASS="KEYCAP"
>N</B
> shortcut to appear on this menu item.  The shortcut does not create
an outcome, but rather a new game.</P
></TD
></TR
></TABLE
></DIV
></P
><P
>Editing outcome payoffs and labels is done in-place in the grid.  Note that
editing payoffs may cause computed profiles to cease being Nash equilibria
(or, perhaps, cause them to become Nash equilibria); these changes will
occur automatically in the Profiles window, if displayed.  Strategy,
action, and node values similarly will recompute after any payoff change.</P
><P
>Outcomes may be deleted using the <B
CLASS="GUIMENUITEM"
>Delete</B
> on
the context menu.  Deleting an outcome results in any nodes (in the
extensive form) or contingencies (in the normal form) with that outcome
having their outcome reset to the null outcome, with zero payoffs.</P
><P
>Outcomes are attached to nodes or contingencies in one of two ways.
In either case, first select the node or contingency where the outcome
will go.
<P
></P
><UL
><LI
><P
>Using the <B
CLASS="GUIMENU"
>Edit</B
> menu, select <B
CLASS="GUIMENUITEM"
>Node</B
>
or <B
CLASS="GUIMENUITEM"
>Contingency</B
>, as appropriate.  The presented
dialogs have a drop-down choice listing all outcomes and their payoffs;
select the desired outcome, and press OK to dismiss the dialog.</P
></LI
><LI
><P
>Using the outcomes window, select the outcome and right-click to get the
context menu.  Select <B
CLASS="GUIMENUITEM"
>Attach</B
>, and the outcome
will be attached to the selected node or contingency.</P
></LI
></UL
>
In a similar way, outcomes may be detached from nodes or contingencies,
either by selecting the null outcome when editing the node or contingency,
or by selecting <B
CLASS="GUIMENUITEM"
>Detach</B
> from the context menu
in the outcomes window.</P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="GUI.CONV.STANDARD"
>Standard Nash equilibrium algorithms</A
></H2
><P
>In most cases, the first task a user will ask Gambit to do after entering
a game is to compute some Nash equilibria.
In general, it is not possible to "black box" the
process of computing a Nash equilibrium, or a refinement thereof.
The algorithm best suited to a particular task depends upon both
the properties of the game, such as whether it is zero-sum, or how
many players it has, the number of equilibria the user wants to find,
and what refinements, if any, the equilibria should satisfy.
However, both theory and experience can inform choices for algorithms
and parameter settings which work "well" in general.</P
><P
>For both extensive and normal forms, Gambit provides a set of
standard Nash equilibrium computation algorithm settings.  
These standard procedures are run from the Nash equilibrium dialog
(accessible with the
<B
CLASS="GUIMENUITEM"
>Equilibrium</B
> item on the 
<B
CLASS="GUIMENU"
>Tools</B
> menu).  Standard algorithms to compute one,
two, or all Nash equilibria are available for both extensive and normal
forms, as well as for selected refinements as appropriate.
Refinements currently supported by Gambit are sequential and
subgame perfect Nash equilibria on the extensive form, and
(trembling-hand) perfect equilibria on the normal form.
<A
NAME="AEN411"
HREF="#FTN.AEN411"
>[1]</A
></P
></DIV
></DIV
></DIV
><H3
CLASS="FOOTNOTES"
>Notes</H3
><TABLE
BORDER="0"
CLASS="FOOTNOTES"
WIDTH="100%"
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
WIDTH="5%"
><A
NAME="FTN.AEN411"
HREF="gui.ref.html#AEN411"
>[1]</A
></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
WIDTH="95%"
><P
>An implementation of Yamamoto's algorithm
[<SPAN
CLASS="CITATION"
><A
HREF="bib.html#YAM93"
>Yam93</A
></SPAN
>]
for finding one proper
equilibrium in a normal form game is currently planned for release
0.97.1.x.</P
></TD
></TR
></TABLE
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="gui.start.nfgnash.html"
>&#60;&#60;&#60; Previous</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="gambit.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="gui.efg.html"
>Next &#62;&#62;&#62;</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Finding Nash equilibria using the normal form</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Extensive form games</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>