Print plan statistics only if plan found
This commit is contained in:
parent
704fbcf130
commit
a9ee64ed81
11
main.c
11
main.c
@ -222,6 +222,14 @@ void printStatistics()
|
||||
break;
|
||||
}
|
||||
|
||||
printf("plan:\n found: ");
|
||||
|
||||
if (solutionIndex < 0)
|
||||
printf("false\n");
|
||||
else
|
||||
{
|
||||
printf("true\n");
|
||||
|
||||
const auto planLength = seqs[solutionIndex].sati->nOfTPoints - 1;
|
||||
|
||||
int numberOfActions = 0;
|
||||
@ -233,7 +241,8 @@ void printStatistics()
|
||||
if (vartruep(sati,TACT(i,t)))
|
||||
numberOfActions++;
|
||||
|
||||
printf("plan:\n length: %i\n actions: %i\n", planLength, numberOfActions);
|
||||
printf(" length: %i\n actions: %i\n", planLength, numberOfActions);
|
||||
}
|
||||
|
||||
if(flagOutputDIMACS == 0) {
|
||||
printf("iterations:\n");
|
||||
|
Loading…
Reference in New Issue
Block a user