Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENHSP-2020 result different from JAR on ENHSP website #136

Open
nvitucci opened this issue Jan 23, 2024 · 3 comments
Open

ENHSP-2020 result different from JAR on ENHSP website #136

nvitucci opened this issue Jan 23, 2024 · 3 comments

Comments

@nvitucci
Copy link

I've run ENHSP-2020 with a simple domain and problem, and I get a different result than what I get by running the ENHSP-2020 JAR file from the project website. With planutils the problem is deemed to be unsolvable, while with the JAR file it is solved easily.

If nothing is different in the code, it may just be a different default -planner and/or -h(euristic) across the two versions. This may be relevant to @hstairs too.

Domain file:

(define
    (domain maze)
    (:requirements :strips :typing)
    (:types cell - object)
    (:constants goal - cell)
    (:predicates
        (is-at ?x - cell)
        (is-open ?x - cell)
        (connected ?x - cell ?y - cell)
    )
    (:action move
        :parameters (?from - cell ?to - cell)
        :precondition (and
            (is-at ?from)
            (is-open ?to)
            (connected ?from ?to)
        )
        :effect (and
            (is-at ?to)
            (not (is-at ?from))
        )
    )
)

Problem file:

(define
    (problem solve-maze)
    (:domain maze)
    (:objects
        a - cell
        b - cell
        c - cell
        d - cell
    )
    (:init
        (is-open b)
        (is-open c)
        (is-open d)
        (is-open goal)

        (connected a b)
        (connected b c)
        (connected c d)
        (connected b goal)
        (connected d goal)

        (is-at a)
    )
    (:goal
        (is-at goal)
    )
)
@haz
Copy link
Contributor

haz commented Jan 23, 2024

@hstairs ?

@nvitucci
Copy link
Author

nvitucci commented Jan 23, 2024

Also, I am not sure it is related but enhsp-2020 runs correctly as a command in planutils, while enhsp does not (it fails with a "-o": executable file not found in $PATH error).

@hstairs
Copy link

hstairs commented Jan 26, 2024

Sorry but i can't easily reproduce what you have because I am on a m1 architecture and had some issue with planutils. Will try to look into this as soon as I manage to run everything under docker...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants