From SAT to SMT and back.
There is a Gist, see references [@gist].
Is a given formula (i.e. $\lnot A \land (B \lor C)$) satisfiable?
import sys | |
### require tflite >= v2.4.0 | |
import tflite | |
import os | |
from collections import defaultdict | |
from datetime import datetime | |
### TFL3 schema compatible | |
ACTIVATION_DICT = { | |
0 : "NONE", |
import scipy as sp | |
import scipy.sparse | |
import scipy.linalg | |
from scipy.sparse.linalg import cg | |
def whitsm(y, lmda): | |
m = len(y) | |
E = sp.sparse.identity(m) | |
d1 = -1 * np.ones((m),dtype='d') | |
d2 = 3 * np.ones((m),dtype='d') |