aiplan4eu / unified-planning

The AIPlan4EU Unified Planning Library
Apache License 2.0
177 stars 39 forks source link

Exception on example notebooks. #409

Closed muzoaydo closed 1 year ago

muzoaydo commented 1 year ago

Problem

When i run the 02-optimal-planning.ipynb notebook example, on 7'th section where assert functions are written, i get this error:

AssertionError                            Traceback (most recent call last)
[c:\Users\muzo1\Desktop\UPF\unified-planning\docs\notebooks\02-optimal-planning.ipynb](file:///C:/Users/muzo1/Desktop/UPF/unified-planning/docs/notebooks/02-optimal-planning.ipynb) Cell 19 in 
----> [1](vscode-notebook-cell:/c%3A/Users/muzo1/Desktop/UPF/unified-planning/docs/notebooks/02-optimal-planning.ipynb#X24sZmlsZQ%3D%3D?line=0) assert final_report.status == PlanGenerationResultStatus.SOLVED_OPTIMALLY
      [2](vscode-notebook-cell:/c%3A/Users/muzo1/Desktop/UPF/unified-planning/docs/notebooks/02-optimal-planning.ipynb#X24sZmlsZQ%3D%3D?line=1) assert plan == expected_plan

AssertionError:

To Reproduce Steps to reproduce the behavior:

  1. Go to '02-optimal-planning.ipynb'
  2. Click on 'Run All'
  3. Scroll down to '7'th section'
  4. See error

Same error raises at 10'th section as well.

Expected behavior I believe it should have solve the problem optimally and not raise an exception.

Screenshots image

Desktop (please complete the following information):

alvalentini commented 1 year ago

We currently have a limitation that prevents using some planners (fast-downward, enhsp, lpg) through notebooks in windows.

muzoaydo commented 1 year ago

Is there any way i work around this issue ? Since we are going to develop our AIPlan4EU project with optimal planning, we can't move forward atm.

alvalentini commented 1 year ago

You can convert a python notebook into a normal python file and then it should work fine.

muzoaydo commented 1 year ago

Thank you.