Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #12015

SatisfiabilityInstances[] how to put variables

From info@dvholten.de
Newsgroups comp.soft-sys.math.mathematica
Subject SatisfiabilityInstances[] how to put variables
Date 2012-10-09 04:46 +0000
Message-ID <k50a7e$3pe$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


folks,
i am playing with the satisfiability-support in Mathematica.
SatisfiabilityInstances[] gives me the settings of the variables, which return true for the whole formula. However, the input is a little uncomfortable:
SatisfiabilityInstances[ formulaCNF, { v1, v2, v3, v4, v5 } ]
needs to be called for a formula with the 5 variabled v1..v5. For a formula with 400 variables this is not practical.
is there short way to extract a list of variables from the formula?
is there a short way to build a list of variables names?
(assuming the variables are named as a sequence like x1, x2...x77 or var1...var999).
or is there a way to implictily tell SatisfiabilityInstances[] or one of his brothers what the variables are in the formula so that they dont have to be given one by one?

thanks
DvH

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

SatisfiabilityInstances[] how to put variables info@dvholten.de - 2012-10-09 04:46 +0000

csiph-web