(encode-cnf this)
Returns variable and clauses
Returns variable and clauses
(encode-constraint constraint)
Returns (cons new-constraint new-clauses)
Returns (cons new-constraint new-clauses)
(solutions clauses)
(solutions clauses timeout)
(solutions clauses timeout timeout-atom)
Takes a formula in integer CNF form, i.e., vector of constraints and vectors of non-zero ints and optional timeout in millis and optional atom to set to true if timeout occurs. Returns lazy sequence of all solutions. Stats attached as metadata to each solution.
Takes a formula in integer CNF form, i.e., vector of constraints and vectors of non-zero ints and optional timeout in millis and optional atom to set to true if timeout occurs. Returns lazy sequence of all solutions. Stats attached as metadata to each solution.
(solutions-symbolic-cnf clauses)
(solutions-symbolic-cnf clauses timeout)
(solutions-symbolic-cnf clauses timeout timeout-atom)
Takes a formula in symbolic CNF form, i.e., vector of constraints and vectors of variables and ! of variables, where variables are represented by arbitrary Clojure data. Also takes optional timeout in millis and optional atom to set to true if timeout occurs. Returns lazy sequence of solutions. Stats attached as metadata to each solution.
Takes a formula in symbolic CNF form, i.e., vector of constraints and vectors of variables and ! of variables, where variables are represented by arbitrary Clojure data. Also takes optional timeout in millis and optional atom to set to true if timeout occurs. Returns lazy sequence of solutions. Stats attached as metadata to each solution.
(solutions-symbolic-formula wffs)
(solutions-symbolic-formula wffs timeout)
(solutions-symbolic-formula wffs timeout timeout-atom)
Takes a formula in symbolic form, i.e., vector of constraints and formulas, where formulas are built with formula constructors such as AND, OR, XOR, IFF, NAND, NOR, IMP, NOT, and formula variables are represented by arbitrary Clojure data. Also takes optional timeout in millis and optional atom to set to true if timeout occurs. Returns lazy sequence of all solutions. Stats attached as metadata.
Takes a formula in symbolic form, i.e., vector of constraints and formulas, where formulas are built with formula constructors such as AND, OR, XOR, IFF, NAND, NOR, IMP, NOT, and formula variables are represented by arbitrary Clojure data. Also takes optional timeout in millis and optional atom to set to true if timeout occurs. Returns lazy sequence of all solutions. Stats attached as metadata.
(solve clauses)
(solve clauses timeout)
(solve clauses timeout timeout-atom)
Takes a formula in integer CNF form, i.e., vector of constraints and vectors of non-zero ints and optional timeout in millis and optional atom to set to true if timeout occurs. Returns solution or nil if no solution exists. Stats attached as metadata.
Takes a formula in integer CNF form, i.e., vector of constraints and vectors of non-zero ints and optional timeout in millis and optional atom to set to true if timeout occurs. Returns solution or nil if no solution exists. Stats attached as metadata.
(solve-symbolic-cnf clauses)
(solve-symbolic-cnf clauses timeout)
(solve-symbolic-cnf clauses timeout timeout-atom)
Takes a formula in symbolic CNF form, i.e., vector of constraints and vectors of variables and ! of variables, where variables are represented by arbitrary Clojure data. Also takes optional timeout in millis and optional atom to set to true if timeout occurs. Returns solution or nil if no solution exists. Stats attached as metadata.
Takes a formula in symbolic CNF form, i.e., vector of constraints and vectors of variables and ! of variables, where variables are represented by arbitrary Clojure data. Also takes optional timeout in millis and optional atom to set to true if timeout occurs. Returns solution or nil if no solution exists. Stats attached as metadata.
(solve-symbolic-formula wffs)
(solve-symbolic-formula wffs timeout)
(solve-symbolic-formula wffs timeout timeout-atom)
Takes a formula in symbolic form, i.e., vector of constraints and formulas, where formulas are built with formula constructors such as AND, OR, XOR, IFF, NAND, NOR, IMP, NOT, and formula variables are represented by arbitrary Clojure data. Also takes optional timeout in millis and optional atom to set to true if timeout occurs. Returns solution or nil if no solution exists. Stats attached as metadata.
Takes a formula in symbolic form, i.e., vector of constraints and formulas, where formulas are built with formula constructors such as AND, OR, XOR, IFF, NAND, NOR, IMP, NOT, and formula variables are represented by arbitrary Clojure data. Also takes optional timeout in millis and optional atom to set to true if timeout occurs. Returns solution or nil if no solution exists. Stats attached as metadata.
(true-integer-variables coll)
Returns a set of all the true variables from a collection of integer variables. Returns nil if passed nil.
Returns a set of all the true variables from a collection of integer variables. Returns nil if passed nil.
(true-symbolic-variables coll)
Returns a set of all the true variables from a collection of symbolic variables. Returns nil if passed nil.
Returns a set of all the true variables from a collection of symbolic variables. Returns nil if passed nil.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close