# Leveraging Iterative Plan Refinement for Reactive Smart Manufacturing Systems
This repository contains supplemental resources for the T-ASE paper "Leveraging Iterative Plan Refinement for Reactive Smart Manufacturing Systems". Specifically, it provides detailed information about the mapping from IEC 62264 to PDDL:
* A small example with model fragments to [show how PDDL actions are created from IEC 62264 process segments](#creating-pddl-actions-from-iec-62264-process-segments).
* A [complete set of IEC 62264 input models](#iec-62264-models).
* A [complete set of PDDL output files](#pddl-files).
## Creating PDDL actions from IEC 62264 process segments
Excerpts from an IEC 62264 model that are relevant to generate a PDDL action from an IEC 62264 process segment. The example files are provided in the sub-folder [move-shuttle](move-shuttle).
## IEC 62264 Models
Full IEC 62264 model of the production system, as it is used in the paper, for the test-run with *one* product to be manufactured. The core IEC 62264 model that is used to generate the PDDL domain description as well as most parts of the PDDL problem file is provided in [iec62264/CIIRC-Testbed-TASE-1.iec62264](iec62264/CIIRC-Testbed-TASE-1.iec62264). The IEC 62264 model that describes the envisioned goal state of the production system and is used to generate the goal clause of the PDDL problem file is given in [iec62264/CIIRC-Testbed-TASE-Goal-1.iec62264](iec62264/CIIRC-Testbed-TASE-Goal-1.iec62264).
## PDDL Files
The generated PDDL files are provided in sub-folder [pddl](pddl). The [domain](pddl/domain-CIIRC-Testbed-TASE-1.pddl) file is used together with the [problem](pddl/problem-CIIRC-Testbed-TASE-1.pddl) description to compute a [plan](pddl/plan-CIIRC-Testbed-TASE-1.pddl). The plan file itself is already a computed artifact returned from the PDDL solver, which in this use case was [FastDownward](http://www.fast-downward.org/). The following call can be used to re-create the plan file (potentially with a different sequence of actions).