This website works better with JavaScript.
Home
Explore
Help
Sign In
QA_SAT
/
qubo_lab
Watch
2
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
added local scons
master
Tom
5 years ago
parent
f1c63793c7
commit
34fa181195
3 changed files
with
8 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
.gitmodules
+1
-0
SconsLocal
+4
-4
util/SAT2QUBO.py
+ 3
- 0
.gitmodules
View File
@ -15,3 +15,6 @@
path = contrib/qubosolver/qbscxx
url = ssh://git@sargas.org:2240/Tom/qbscxx.git
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
random
#__VERTEX_WEIGHT__ = -
2
#__EDGE_WEIGHT__ =
2
__VERTEX_WEIGHT__
=
-
2
__EDGE_WEIGHT__
=
2
__VERTEX_WEIGHT__
=
1
__EDGE_WEIGHT__
=
-
2
def
WMISdictQUBO
(
kSATInstance
)
:
__VERTEX_WEIGHT__
=
-
1
quboInstance
=
{
}
for
clauseIndex
in
range
(
kSATInstance
.
getNumberOfClauses
(
)
)
:
Write
Preview
Loading…
Cancel
Save