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

Strange behavior in scheduling problems with activities parameters (UP) #140

Open
nicola-gigante opened this issue Jul 5, 2024 · 0 comments

Comments

@nicola-gigante
Copy link

nicola-gigante commented Jul 5, 2024

Hi,

consider this example:

from unified_planning.shortcuts import *
import unified_planning.model.scheduling as sched

problem = sched.SchedulingProblem()

a = problem.add_activity('a', 10)

a.add_parameter('p', BoolType())

print(problem)

with OneshotPlanner(name='aries') as planner:
    solution = planner.solve(problem)
    print(solution)

It prints the following:

fluents = [
]

initial fluents default = [
]

initial values = [
]


BASE: {
  }

Activities:
  a(bool a.p) {
    duration = [10, 10]
  }
  
status: INTERNAL_ERROR
engine: aries
plan: None

Why does it give INTERNAL_ERROR?

If I comment the add_parameter() line, it works.

Best,
Nicola

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

1 participant