Skip to content

pucrs-automated-planning/heuristic-planning

Repository files navigation

Assignment 2: Planning using Heuristic Search

Felipe Meneguzzi
Mauricio Magnaguagno (PhD Student)
Leonardo Rosa Amado (PhD Student)
Gabriel Paludo Licks (MSc Student)

AI Planning (1982D-02):

  • Assigned: 15 May
  • Due: 16 June

Assignment Overview

The goal of this work is to implement the core functions of an automated planner and benchmark a number of heuristics. You will implement three main functions in this assignment:

  • Implement a number of heuristic functions
    • Max-Cost ($h^{max}$)
    • Additive Cost ($h^{add}$)
    • Relaxed Plan ($h^{FF}$)
    • Critical Path ($h^{m}$) (Optional)
    • Optimal Delete Relaxation ($h^{+}$) (Optional)
    • Landmark Heuristics ($h^{LM}$ and $h^{LM-Cut}$) (Optional)
  • Implement a function capable of validating a plan given a domain and a problem.
  • Finally, implement the heuristic search A*

After implementing the required functions, you must write a 2-page paper. The entire package must be delivered using GitHub, where your implemented functions must be contained in this Jupyter Notebook, and the paper as a separate pdf file committed in the same Github repository in the paper folder.

Experimentation

Grading

In order to properly evaluate your work and thought process, you will write a 2-page report in the AAAI two-column format explaining your encoding and experiments. These guidelines are to be followed exactly. Reports that are less than two pages of actual content, or not in format will receive 0 marks for the report criterion. This report will be included in the deliverables of the assignment. The formatting instructions are available at Overleaf (AAAI Press). The report must have the following sections:

  • An introduction with your understanding of the problem domain, outlining the remainder of the paper;
  • Three sections explaining each part of your implementation (search, heuristic, and validator).
  • One experimentation section where you measure the performance of the planner using your action formalisation for each of the domains, on multiple problems.
  • One conclusion section, where you will summarise your experience in encoding planning domains and discuss the performance of the planner, and any limitations encountered in solving the problems you encoded.

Grading will consider elements of your encoding, experimentation and reporting of the work done. The criteria, as well as their weight in the final grade is as follows:

  • Implementation (70%):
    • Heuristic functions (30%):
      • $h^{max}$ (10%);
      • $h^{add}$ (10%);
      • $h^{FF}$ (10%); and
      • Any other heuristic and tests (10% bonus).
    • Validator (10%);
    • Heuristic search (30%):
      • Correctness and optimality (20%); and
      • Runtime efficiency (10%).
  • Overall report readability (20%) — how accessible and coherent your explanation of your implementation is;
  • Code readability (10%).

Python Instructions

In LAPRO you can just run (for Linux):

jupyter notebook

and for Windows you should execute Jupyter Notebook from the start menu. Open the given URL in a browser, and navigate to the folder of the cloned repository of this assignment.

Conda is required to run this assignment, and will install Jupyter for you. The following sequence of steps creates a virtual environment and installs the required dependencies for Python 3.6:

conda create -n py36_heu python=3.6
conda activate py36_heu #For windows: conda activate py36_heu
pip install ipykernel jupyterlab matplotlib nose
python -m ipykernel install --name py36_heu --user

Important Information

Corrections: From time to time, students or staff find errors (e.g., typos, unclear instructions, etc.) in the assignment specification. In that case, a corrected version of this file will be produced, announced, and distributed for you to commit and push into your repository. Because of that, you are NOT to modify this file in any way to avoid conflicts.

Late submissions & extensions: You have a 24 hour grace period with a penalty of 10% of the maximum mark, which increases to 50% until 48 hours after the due date, and 100% penalty thereafter. Extensions will only be permitted in exceptional circumstances.

About this repo: You must ALWAYS keep your fork private and never share it with anybody in or outside the course, even after the course is completed. You are not allowed to make another repository copy outside the provided GitHub Classroom without the written permission of the teaching staff.

Please do not distribute or post solutions to any of the projects and notebooks.

Collaboration Policy: You must work on this project individually. You are free to discuss high-level design issues with the people in your class, but every aspect of your actual formalisation must be entirely your own work. Furthermore, there can be no textual similarities in the reports generated by each group. Plagiarism, no matter the degree, will result in forfeiture of the entire grade of this assignment.

We are here to help!: We are here to help you! But we don't know you need help unless you tell us. We expect reasonable effort from you side, but if you get stuck or have doubts, please seek help by creating an issue in the repository and assigning it to the instructor. Always keep the most updated version of your code pushed to Git so when you create an issue, the teaching staff can look into your code to help.

Silence Policy: A silence policy will take effect 48 hours before this assignment is due. This means that no question about this assignment will be answered, whether it is asked on Moodle, by email, or in person. Use the last 48 hours to wrap up and finish your project quietly as well as possible if you have not done so already. Remember it is not mandatory to do all perfect, try to cover as much as possible. By having some silence we reduce anxiety, last minute mistakes, and unreasonable expectations on others.

Please remember to follow all the submission steps as per project specification.

About

Automated Planning Assignment Template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •