| 71 | | If a boolean choice is selected, exactly one of the related !ChoiceItems has to be selected. For each !ChoiceItems the individual conditions has to be considered. |
| | 71 | If a boolean choice is selected, exactly one of the related !ChoiceItems has to be selected. For each !ChoiceItems the individual conditions has to be considered. A Choice with n !ChoiceItems {{{Item1}}} - {{{ItemN}}} must be translated as follows (conditions are not considered here): |
| | 72 | * In RSF: |
| | 73 | {{{ |
| | 74 | Choice CHOICE |
| | 75 | ChoiceItem Item1 CHOICE |
| | 76 | ... |
| | 77 | ChoiceItem ItemN CHOICE |
| | 78 | }}} |
| | 79 | * In Boolean formula: |
| | 80 | {{{ |
| | 81 | CHOICE implies (Item1 or Item2 or ... or ItemN) |
| | 82 | Not(CHOICE) implies Not(Item1) |
| | 83 | Not(CHOICE) implies Not(Item2) |
| | 84 | ... |
| | 85 | Not(CHOICE) implies Not(ItemN) |
| | 86 | Item1 xor Item2 |
| | 87 | Item1 xor Item3 |
| | 88 | ... |
| | 89 | Item1 xor ItemN |
| | 90 | Item2 xor Item3 |
| | 91 | ... |
| | 92 | ItemN-1 xor ItemN |
| | 93 | }}} |
| | 94 | * In DIMACS: |
| | 95 | {{{ |
| | 96 | Not(CHOICE) or Item1 or Item2 or ... or ItemN |
| | 97 | CHOICE or Not(Item1) |
| | 98 | CHOICE or Not(Item2) |
| | 99 | ... |
| | 100 | CHOICE or Not(ItemN) |
| | 101 | Not(Item1) or Not(Item2) |
| | 102 | Not(Item1) or Not(Item3) |
| | 103 | ... |
| | 104 | Not(Item1) or Not(ItemN) |
| | 105 | Not(Item2) or Not(Item3) |
| | 106 | ... |
| | 107 | Not(ItemN-1) or Not(ItemN) |
| | 108 | }}} |
| | 109 | |