| 256 | |
| 257 | == Defaults and prompts == |
| 258 | Each variable can have multiple default values. The user may overwrite this value, if the variable is visible. Thus, default values must be used as constraints for variables which are not visible. |
| 259 | * Translation of defaults with prompts |
| 260 | No constraint must be crated, if a variable has a default value and a (permanent visible) prompt. |
| 261 | * Translation of defaults with no prompts |
| 262 | For variables with a default but no prompt, a constraint must be created. |
| 263 | * In RSF: |
| 264 | {{{ |
| 265 | Default VARIABLE VALUE CONDITION1 |
| 266 | Prompt VARIABLE CONDITION2 |
| 267 | }}} |
| 268 | * In Boolean formula: |
| 269 | {{{ |
| 270 | (Not(CONDITION2) and CONDITION1) implies VARIABLE=VALUE |
| 271 | }}} |
| 272 | * In DIMACS: |
| 273 | {{{ |
| 274 | CONDITION2 or Not(CONDITION1) or VARIABLE=VALUE |
| 275 | }}} |