| 2 | |
| 3 | == Translation of ''depends'' Constraints == |
| 4 | Each variable can have multiple depends statements, specifying when the variable can be configured. The variable must remain unconfigured (in case of a Boolean or Tristate variable, it must be set to ''n''), if none of the depends statements is fulfilled. |
| 5 | Conditions will be translated as follows: |
| 6 | 1. One Condition: |
| 7 | * In RSF: |
| 8 | {{{ |
| 9 | depends Variable Condition |
| 10 | }}} |
| 11 | * In Boolean formula: |
| 12 | {{{ |
| 13 | Not(Condition) implies Not(Variable) |
| 14 | }}} |
| 15 | * In DIMACS |
| 16 | {{{ |
| 17 | Condition or Not(Variable) |
| 18 | }}} |
| 19 | 1. Multiple Conditions |
| 20 | * In RSF: |
| 21 | {{{ |
| 22 | depends Variable Condition1 |
| 23 | depends Variable Condition2 |
| 24 | }}} |
| 25 | * In Boolean formula: |
| 26 | {{{ |
| 27 | Not(Condition1) and Not(Condition2) implies Not(Variable) |
| 28 | }}} |
| 29 | * In DIMACS |
| 30 | {{{ |
| 31 | Condition1 or Condition2 or Not(Variable) |
| 32 | }}} |