From ee0b446230414b0195d6e83add17ac3cb61d28cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Tue, 24 May 2016 01:54:57 +0200 Subject: [PATCH] Showing action cost predicates unconditionally for easier handling in meta encodings. --- src/plasp/sas/TranslatorASP.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/plasp/sas/TranslatorASP.cpp b/src/plasp/sas/TranslatorASP.cpp index d9d364a..5f7d49c 100644 --- a/src/plasp/sas/TranslatorASP.cpp +++ b/src/plasp/sas/TranslatorASP.cpp @@ -153,12 +153,9 @@ void TranslatorASP::translate(std::ostream &ostream) const currentEffectID++; }); - if (usesActionCosts) - { - ostream << "costs("; - operator_.printPredicateAsASP(ostream); - ostream << ", " << operator_.costs() << ")." << std::endl; - } + ostream << "costs("; + operator_.printPredicateAsASP(ostream); + ostream << ", " << operator_.costs() << ")." << std::endl; }); ostream << std::endl;