• Tidak ada hasil yang ditemukan

Hierarchical task networks in the assignment

N/A
N/A
Protected

Academic year: 2023

Membagikan "Hierarchical task networks in the assignment "

Copied!
12
0
0

Teks penuh

(1)

CompSci 367, tutorial 7

PROPS assignment and planning

Alex Donaldson

(2)

# of arguments

Using hierarchical task networks means that

smaller tasks will determine certain properties of larger tasks (higher in the hierarchy)

The task unstack takes 2 arguments

Hence the task unstack_and_put_down will require 2 arguments

Hence the first invert_tower rule will need to look at the first 2 elements in the tower

Similarly for other rules

(3)

A possible mistake

• …hence you shouldn’t need to check that you aren’t stacking a block on itself

• Also, keep in mind that not must enclose a working memory element

• Again, you shouldn’t use the check keyword

(4)

Hierarchical task networks in the assignment

• For the task of inverting a tower, you don’t need subtasks in general

• However this assignment is designed to give people experience with heirarchical task

networks, and implementing them within PROPS

(5)

Common bugs

• In propsdemo2

• In propsdemonota

• In propsdemonotb

(6)

Planning

(7)

Planning overview

Planning is a specific type of state space search which makes use of additional information about the task

State represented by literals (true xor false)

Problem is composed of:

Literals (propositional expressions – use predicates) Initial state (fully defined)

Goal state (can be partially defined)

Operators (aka actions), which have preconditions and effects

(8)

Planning overview

• 3 different languages

State language – for representing a state Goal language – for representing goals, and

preconditions of operators, and derived predicates Update language – for representing effects of

operators

• + Prolog for meta-level predicates

(9)

Planning overview

• State representation uses:

state language

• Goal representation uses:

goal language

• Operator representation, has [name, set of parameters, preconditions, effects], uses:

goal language, for preconditions update language, for effects

(10)

Planning overview

• State language, types of state predicates:

Polarity

negative (default)

positive

Changeability

fluent (default) = can change

static = can’t change for a given problem

(11)

Planning overview

Goal language adds derived and meta-level predicates:

Value access

primitive (default) = values can’t be found from other predicates, must be in state description

derived = values found from other predicates, not stored in state description

Value basis

object level (default) = tests a state

Meta-level = state is not directly used (Prolog, not state language). Motivation: Object level predicates can only access literals, so if we want to do some other operations e.g. < comparison, we have to use a different type of

predicate and language - meta-level predicates and Prolog.

(12)

Planning overview

• Goal language

don’t care is default, positive and negative both need to be specified

• Update language

don’t change is default

positive literals added to state description

negative literals removed from state description

Referensi

Dokumen terkait

Marketing strategies carried out through digital platforms allow advertisers to engage directly with potential customers regardless of geographic location, which is considered a type of

LOTUS speak out that she will recommend Sukuk financing to other states in the country for some reason, first Sukuk has an easy way in of channeling funds from payable sector to the