Bug/unsupported feature in sum of cardinalities

Issue #352 resolved
JoD created an issue

I tried to post the following constraint in the NoMystery problem:

// At most one action can be taken at each step ! step: #{package: Load(package,step)}+#{package: Unload(package,step)}+#{loc: DriveTo(loc,step)}<2.

Which employs a sum of cardinalities, but the grounder arrived in an infinite loop.

An equivalent way of stating this is by a cardinality over the union of the sets: ! step: #[{package: Load(package,step)},{package: Unload(package,step)},{loc: DriveTo(loc,step)}]<2.

But the grounder gives a syntax error.

Comments (9)

  1. Log in to comment