Question: Q . 1 Temporal Planning / STN ( a ) This question is about temporal planning. For reference, here is the evaluator domain. ( define

Q.1 Temporal Planning / STN
(a) This question is about temporal planning. For reference, here is the evaluator domain.
(define (domain elevators)
(:requirements :typing)(:types elevator passenger num - object)
(:predicates
(passenger-at ?person - passenger ?floor - num)
(boarded ?person - passenger ?lift - elevator)
(lift-at ?lift - elevator ?floor - num)
(next ?n1- num ?n2- num)
)
(:action move-up
:parameters (?lift - elevator ?cur ?nxt - num)
:precondition (and (lift-at ?lift ?cur)(next ?cur ?nxt))
:effect (and (not (lift-at ?lift ?cur))(lift-at ?lift ?nxt))
)
(:action move-down
:parameters (?lift - elevator ?cur ?nxt - num)
:precondition (and (lift-at ?lift ?cur)(next ?nxt ?cur))
:effect (and (not (lift-at ?lift ?cur))(lift-at ?lift ?nxt))
)
(:action board
:parameters (?person - passenger ?floor - num ?lift - elevator)
:precondition (and (lift-at ?lift ?floor)(passenger-at ?person ?floor))
:effect (and (not (passenger-at ?person ?floor))(boarded ?person ?lift))
)
(:action leave
:parameters (?person - passenger ?floor - num ?lift - elevator)
:precondition (and (lift-at ?lift ?floor)(boarded ?person ?lift))
:effect (and (passenger-at ?person ?floor)(not (boarded ?person ?lift)))
)
)
Consider the following problem and plan:
(define (problem elevators-problem)
(:domain elevators)
(:objects n1 n2 n3- num p1 p2- passenger e1- elevator)
(:init
(next n1 n2)
(next n2 n3)
(lift-at e1 n1)
(passenger-at p1 n2)
(passenger-at p2 n2)
)
(:goal (and (passenger-at p1 n1)
(passenger-at p2 n3)
)
)
)
P1)0.000: (move-up e1 n1 n2)[0.001]
P2)0.001: (board p2 n2 e1)[0.001]
P3)0.002: (move-up e1 n2 n3)[0.001]
P4)0.004: (move-down e1 n3 n2)[0.001]
P5)0.005: (move-down e1 n2 n1)[0.001]
P6)0.006: (leave p1 n1 e1)[0.001]
Is this plan valid? If not, list all of the reasons that make it invalid.
(b) Using the above example, consider converting the actions into the durative actions as following:
- Passenger p1 takes 2 seconds for each action: board evaluator, leave evaluator
- Passenger p2 takes 3 seconds for each action: board evaluator, leave evaluator
- Evaluator e1 takes 1 seconds to move up or down 3 meters
- Distance between floor numbers n1 and n2 is 3 meters
- Distance between floor numbers n2 and n3 is 4 meters
List all the actions of a valid plan while considering to reduce the total time taken to reach the same goal. (c) Using the following STN, convert upper-bound/lower-bound format to single-bound format.
(d) Using floyd-warshall algorithm, convert the following graph of STN to all-pairs shortest path graph.
Q . 1 Temporal Planning / STN ( a ) This question

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!