Skip to content

Goal specification #108

Answered by rpgoldman
vakker asked this question in Q&A
Jun 30, 2022 · 1 comments · 8 replies
Discussion options

You must be logged in to vote
  1. With respect to your first question, it looks like there is a combination of two problems:

    1. The blocks domain simply returns a plan when it fails, instead of noticing it's at a dead end. When I add a verify-solution task to the method for achieve-goals, SHOP no longer claims to have a solution for problem3. Here's what I added:
    (:method (achieve-goals ?goals)
           ()
           ((assert-goals ?goals nil)
            (find-nomove) (add-new-goals) (find-movable) (move-block) (verify-solution)))
    
        (:method (verify-solution)
          (and (setof ?g (goal ?g) ?gs)
               (all-true ?gs))
          ()
          )
    
        (:- (all-true nil)
            ())
    
        (:- (all-true (?g . ?rest))
            (and ?g
         …

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@rpgoldman
Comment options

@rpgoldman
Comment options

@vakker
Comment options

@rpgoldman
Comment options

@vakker
Comment options

Answer selected by vakker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants