Domain-specific constraint patterns are introduced, which form the counterpart to design patterns in software engineering for the constraint programming setting. These patterns describe the expert knowledge and best-practice solution to recurring problems and include example implementations. We aim to reach a stage where, for common problems, the modelling process consists of simply picking the applicable patterns from a library of patterns and combining them in a model. This vastly simplifies the modelling process and makes the models simple to adapt. By making the patterns domain-specific we can further include problem-specific modelling ideas, including specific global constraints and search strategies that are known for the problem, into the pattern description. This ensures that the model we obtain from patterns is not only correct but also of high quality. We introduce domain-specific constraint patterns on the example of job shop and flow shop, discuss their advantages and show how the occurrence of patterns can automatically be checked in an event log.
翻译:采用特定领域的制约模式,作为设计制约性编程设置软件工程模式的对应方,这些模式描述专家知识和最佳做法解决反复出现的问题的办法,并包括示范执行。我们的目标是达到一个阶段,针对共同的问题,建模进程包括简单地从模式库中选择适用的模式并将这些模式合并成一个模型。这极大地简化了建模进程,使模型易于调整。通过使特定领域的模式将特定问题建模理念,包括特定全球制约因素和针对问题已知的搜索战略纳入模式描述。这确保了我们从模式中获得的模型不仅正确,而且质量高。我们在工作商店和流动商店的范例中引入了特定领域的制约模式,讨论了这些模式的优点,并展示了在事件日志中如何自动检查模式的发生。