Changes between Version 15 and Version 16 of Specification/RSF2DIMACS


Ignore:
Timestamp:
Sep 25, 2014, 2:30:15 PM (10 years ago)
Author:
elshar
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Specification/RSF2DIMACS

    v15 v16  
    11= Translation of RSF-Files into DIMACS Format = 
     2This section specifies the translation of RSF files into DIMACS files. 
    23[[PageOutline(2-5, Table of Contents, pullout)]] 
    34 
     
    4142{{{ 
    4243Not(VARIABLE=n) OR Not(VARIABLE=value1) 
    43 Not(VARIABLE=n) OR (VARIABLE=value2) 
    44 ... 
    45 Not(VARIABLE=n) OR (VARIABLE=valueN) 
    46 Not(VARIABLE=value1) OR (VARIABLE=value2) 
    47 ... 
    48 Not(VARIABLE=value1) OR (VARIABLE=valueN) 
     44Not(VARIABLE=n) OR Not(VARIABLE=value2) 
     45... 
     46Not(VARIABLE=n) OR Not(VARIABLE=valueN) 
     47Not(VARIABLE=value1) OR Not(VARIABLE=value2) 
     48... 
     49Not(VARIABLE=value1) OR Not(VARIABLE=valueN) 
    4950... 
    5051VARIABLE=n OR VARIABLE=value1 OR ... OR VARIABLE=valueN 
     
    116117A Tristate Choice can be selected as permanently selected ('y') or as a module ('m'). 
    117118* If the Choice is permanently selected ('y'), exactly one of its !ChoiceItems must also be permanently selected ('y'). 
    118 * If the Choice is selected as a module ('m'), an arbitrary number (0 - n) of !ChoiceItems can also be selected as modules ('m'). 
     119* If the Choice is selected as a module ('m'), an arbitrary number (0 - n) of !ChoiceItems can also be selected as modules ('m'). The permanently selection of !ChoiceItems ('y') is not allowed. [[BR]]  
     120The translation of Tristate Choices includes the translation of Boolean Choices (for the 'y' part). Additional constraints are needed to model the constraints for the modules: 
     121* In RSF: 
     122{{{ 
     123Choice CHOICE 
     124ChoiceItem Item1 CHOICE 
     125... 
     126ChoiceItem ItemN CHOICE 
     127}}} 
     128* In Boolean formula (only the module part): 
     129{{{ 
     130Not(CHOICE_MODULE) implies Not(Item1_MODULE) 
     131Not(CHOICE_MODULE) implies Not(Item2_MODULE) 
     132... 
     133Not(CHOICE_MODULE) implies Not(ItemN_MODULE) 
     134CHOICE implies Not(Item1_MODULE) 
     135CHOICE implies Not(Item2_MODULE) 
     136... 
     137CHOICE implies Not(ItemN_MODULE) 
     138CHOICE_MODULE implies Not(Item1) 
     139CHOICE_MODULE implies Not(Item2) 
     140... 
     141CHOICE_MODULE implies Not(ItemN) 
     142}}} 
     143* In RSF (only the module part): 
     144{{{ 
     145CHOICE_MODULE or Not(Item1_MODULE) 
     146CHOICE_MODULE or Not(Item2_MODULE) 
     147... 
     148CHOICE_MODULE or Not(ItemN_MODULE) 
     149Not(CHOICE) or Not(Item1_MODULE) 
     150Not(CHOICE) or Not(Item2_MODULE) 
     151... 
     152Not(CHOICE) or Not(ItemN_MODULE) 
     153Not(CHOICE_MODULE) or Not(Item1) 
     154Not(CHOICE_MODULE) or Not(Item2) 
     155... 
     156Not(CHOICE_MODULE) or Not(ItemN) 
     157}}} 
    119158 
    120159== Translation of ''depends'' Constraints ==