(define (domain ScientificConference) (:requirements :typing :fluents) [...] (:functions [...] (score) ) ; end functions section [...] (:action SOCIALIZE15 :parameters(?loc - location) :precondition(and (robot-at ?loc) (socializing-place ?loc) (registered) (>= (battery-level) (* 900 (energyconsumed-per-second))) (<= (currenttime) 56700) ; avant 15:45.... conference ending at 16:00! ) :effect(and (increase (score) 10) (decrease (battery-level) (* 900 (energyconsumed-per-second))) (increase (currenttime) 900) ) ) [...] |
(define (domain ScientificConference) (:requirements :typing :fluents) [...] (:functions [...] (total-waited-time) ) ; end functions section [...] (:action WAIT-PRES-SESSION :parameters(?ses - pres-session) :precondition(and (< (currenttime) (time-pres-begin ?ses)) ;(>= (currenttime) (- (time-pres-begin ?ses) 300)) (>= (battery-level) (* (- (time-pres-begin ?ses) (currenttime)) (energyconsumed-per-second))) ) :effect(and (increase (currenttime) (- (time-pres-begin ?ses) (currenttime))) (increase (total-waited-time) (- (time-pres-begin ?ses) (currenttime))) (decrease (battery-level) (* (- (time-pres-begin ?ses) (currenttime)) (energyconsumed-per-second))) ) ) [...] |
(define (domain ScientificConference) (:requirements :typing :fluents) [...] (:functions [...] ) ; end functions section [...] (:action WAIT-PRES-SESSION :parameters(?ses - pres-session) :precondition(and (< (currenttime) (time-pres-begin ?ses)) (>= (currenttime) (- (time-pres-begin ?ses) 300)) (>= (battery-level) (* (- (time-pres-begin ?ses) (currenttime)) (energyconsumed-per-second))) ) :effect(and (increase (currenttime) (- (time-pres-begin ?ses) (currenttime))) (decrease (battery-level) (* (- (time-pres-begin ?ses) (currenttime)) (energyconsumed-per-second))) ) ) (:action SOCIALIZEUNTIL :parameters(?loc - location ?ses - pres-session) :precondition(and (robot-at ?loc) (socializing-place ?loc) (registered) (< (currenttime) (- (time-pres-begin ?ses) 300)) (>= (battery-level) (* 900 (energyconsumed-per-second))) ) :effect(and (decrease (battery-level) (* 900 (energyconsumed-per-second))) (assign (currenttime) (- (time-pres-begin ?ses) 300)) ) ) [...] |
# With Enforced Hill-Climbing ../Metric-FF/ff -o ScientificConf_exC.pddl -f test1_nav.f
Plan : Planner takes > 500MB of memory... no plan...
# Without Enforced Hill-Climbing ../Metric-FF/ff -o ScientificConf_exC.pddl -f test1_nav.f -E -h 1
Plan : 0: GOTO STARTPLACE P15
1: GOTO P15 STARTPLACE 2: GOTO STARTPLACE P15 3: GOTO P15 STARTPLACE 4: GOTO STARTPLACE WP_6 5: GOTO WP_6 STARTPLACE 6: GOTO STARTPLACE P29 7: GOTO P29 REGISTRATION 8: REGISTER REGISTRATION 9: GOTO REGISTRATION WP_1 10: SOCIALIZEUNTIL WP_1 PRESSESSION1 11: GOTO WP_1 STANDROOM_2 12: WAIT-PRES-SESSION PRESSESSION1 13: MAKE-PRESENTATION STANDROOM_2 PRESSESSION1 Time : 47sec |