Type the following into Soar (How to startup Soar if you forgot.):
source "ht.s7"
If you now init-soar and type
d 2, Soar will run two decision cycles until the problem
is solved and then halt. You can then examine the trace (what Soar
prints out as it runs), to see what happened (this trace is also shown
in Trace 3). Alternatively, you
can type
Several of the attributes in this model are traced (such as hungry and
thirsty on the state), but there are several that are not. You can
examine the problem space elements (and their substructures) in their
entirety with p identifier. The
identifier of each context element appears in the trace, such as
S1, so an example usage would be p s1. This
command can be recursively applied to sub-objects, or you can find out
how to print them all at once by consulting help p.
If you lose track of how far you have run the model, you can type
pgs to Print (the) Goal Stack. The current state is the
state that is lowest down in the goal stack. The goal, or desired
state, will normally be seen as an attribute of the current state.
Follow up questions
Return to main page of:
Introduction to Psychological
Soar Tutorial
(or use the Back button to return to where you just were).
Program Listing
PST Soar Help