Download AN INTRODUCTION TO SOAR PROGRAMMING
Transcript
Then preference arbitration would result in: working memory preference memory [agenda=lunch +] [agenda=lunch Ð] That is, the reject preference has caused the wme to be pulled out of working memory, but as long as the productions that produced the preferences still match working memory, both preferences will hang around. But if the reject preference had been added by an O-supported production, then agenda=lunch would be pulled out of working memory, and both the + and the Ð preference would disappear as well: working memory preference memory (Right, thereÕs nothing there!) This gives the Soar system a chance to clean up preference memory, so things donÕt stay around long after they are meaningful. Non-Operator Impasses: What Really Happens When preference memory contains preferences for two non-operator items that canÕt be resolved by the standard preference arbitration rules, neither item will go into working memory. This is an Òattribute impasseÓ. And since the tied items arenÕt operators, Soar wonÕt form a subgoal and try to resolve the impasse. (The logic is that only operators are important enough to justify subgoaling.) But one other thing happens. An Òimpasse objectÓ is put into working memory to flag the unresolved impasse. This object (working memory element) has the uncommon characteristic of having no direct connection to the current state, so locating it takes a bit of effort. However, a production of the form, (sp monitor*impasse*agenda-attribute (impasse <i> ^attribute agenda) --> (write |oops - attribute impasse for agenda!|)) would fire on an impasse for the agenda attribute. This kind of impasse is usually a programming error, which can be hard to find Ñ your trace shows all the right productions firing, but then working memory doesnÕt contain what you expect it to contain. ThereÕs a general-purpose production in the default productions (described below, in the Environment section), which will warn you of attribute impasses that you hadnÕt expected. Soar Introduction 20