Changes between Version 13 and Version 14 of Specification/RSF2DIMACS


Ignore:
Timestamp:
Sep 25, 2014, 12:02:14 PM (10 years ago)
Author:
elshar
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Specification/RSF2DIMACS

    v13 v14  
    6969>then you may define the same choice (ie. with the same entries) in another place. 
    7070=== Translation of Boolean Choices === 
    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. 
     71If 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{{{ 
     74Choice CHOICE 
     75ChoiceItem Item1 CHOICE 
     76... 
     77ChoiceItem ItemN CHOICE 
     78}}} 
     79* In Boolean formula: 
     80{{{ 
     81CHOICE implies (Item1 or Item2 or ... or ItemN) 
     82Not(CHOICE) implies Not(Item1) 
     83Not(CHOICE) implies Not(Item2) 
     84... 
     85Not(CHOICE) implies Not(ItemN) 
     86Item1 xor Item2 
     87Item1 xor Item3 
     88... 
     89Item1 xor ItemN 
     90Item2 xor Item3 
     91... 
     92ItemN-1 xor ItemN 
     93}}} 
     94* In DIMACS: 
     95{{{ 
     96Not(CHOICE) or Item1 or Item2 or ... or ItemN 
     97CHOICE or Not(Item1) 
     98CHOICE or Not(Item2) 
     99... 
     100CHOICE or Not(ItemN) 
     101Not(Item1) or Not(Item2) 
     102Not(Item1) or Not(Item3) 
     103... 
     104Not(Item1) or Not(ItemN) 
     105Not(Item2) or Not(Item3) 
     106... 
     107Not(ItemN-1) or Not(ItemN) 
     108}}} 
     109 
    72110=== Translation of Tristate Choices === 
    73111A Tristate Choice can be selected as permanently selected ('y') or as a module ('m'). 
     
    112150 * In Boolean formula: 
    113151{{{ 
    114 Not(TRISTATE_VAR) and Not(TRISTATE_VAR_MODULE) implies Not(VARIABLE ) 
    115 }}} 
    116  * In DIMACS: 
    117 {{{ 
    118 TRISTATE_VAR or TRISTATE_VAR_MODULE or Not(VARIABLE ) 
     152Not(TRISTATE_VAR) and Not(TRISTATE_VAR_MODULE) implies Not(VARIABLE) 
     153}}} 
     154 * In DIMACS: 
     155{{{ 
     156TRISTATE_VAR or TRISTATE_VAR_MODULE or Not(VARIABLE) 
    119157}}} 
    1201581. Tristate variable depends of Condition