Browse Source

added local scons

master
Tom 5 years ago
parent
commit
34fa181195
3 changed files with 8 additions and 4 deletions
  1. +3
    -0
      .gitmodules
  2. +1
    -0
      SconsLocal
  3. +4
    -4
      util/SAT2QUBO.py

+ 3
- 0
.gitmodules View File

@ -15,3 +15,6 @@
path = contrib/qubosolver/qbscxx path = contrib/qubosolver/qbscxx
url = ssh://git@sargas.org:2240/Tom/qbscxx.git url = ssh://git@sargas.org:2240/Tom/qbscxx.git
branch = develop branch = develop
[submodule "SconsLocal"]
path = SconsLocal
url = http://sargas.org:3000/Tom/SconsLocal.git

+ 1
- 0
SconsLocal

@ -0,0 +1 @@
Subproject commit 46da7f94841216958b2684773e787a5076b7bc2d

+ 4
- 4
util/SAT2QUBO.py View File

@ -6,13 +6,13 @@ from tqdm import tqdm
import math import math
import random import random
#__VERTEX_WEIGHT__ = -2
#__EDGE_WEIGHT__ = 2
__VERTEX_WEIGHT__ = -2
__EDGE_WEIGHT__ = 2
__VERTEX_WEIGHT__ = 1
__EDGE_WEIGHT__ = -2
def WMISdictQUBO(kSATInstance): def WMISdictQUBO(kSATInstance):
__VERTEX_WEIGHT__ = -1
quboInstance = {} quboInstance = {}
for clauseIndex in range(kSATInstance.getNumberOfClauses()): for clauseIndex in range(kSATInstance.getNumberOfClauses()):


Loading…
Cancel
Save