Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
twd-solver
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
adc2019
twd-solver
Commits
02d6be8e
Commit
02d6be8e
authored
Aug 27, 2019
by
tawada
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
a3d6f273
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
solver.py
solver.py
+5
-4
No files found.
solver.py
View file @
02d6be8e
...
...
@@ -205,7 +205,8 @@ def print_cnf(nodes, cnfs, filename='p.txt'):
#s.append(s_sub)
#print(''.join(s))
def
print_cnf2
(
num
,
cnfs
,
filename
=
'p.txt'
):
def
print_cnf2
(
nodes
,
cnfs
,
filename
=
'p.txt'
):
num
=
len
(
nodes
)
s
=
[]
s
.
append
(
f
'p cnf {num} {len(cnfs)}
\n
'
)
for
cnf
in
cnfs
:
...
...
@@ -1382,7 +1383,7 @@ def ensemble_strA(A):
def
main
():
Q
=
readQ
(
'./adc2019problem/Q001_10X10_b8_l11.txt'
)
#
Q = readQ('./adc2019problem/Q001_10X10_b8_l11.txt')
#Q = readQ('./adc2019problem/Q002_10X10_b8_l9.txt')
#Q = readQ('./adc2019problem/Q003_10X10_b5_l5.txt')
#Q = readQ('./adc2019problem/Q004_10X10_b8_l9.txt')
...
...
@@ -1395,11 +1396,11 @@ def main():
#Q = readQ('./adc2019problem/Q013_10X10_b8_l9.txt')
#Q = readQ('./adc2019problem/Q014_10X10_b9_l9.txt')
#Q = readQ('./adc2019problem/Q015_10X10_b8_l9.txt')
#
Q = readQ('./adc2019problem/QRAND327_20X20_b20_l15.txt')
Q
=
readQ
(
'./adc2019problem/QRAND327_20X20_b20_l15.txt'
)
#Q = readQ('./adc2019problem/QRAND368_10X10_b10_l15.txt')
#Q = readQ('./adc2019problem/random_problem/QRAND136_30X30_b30_l30.txt')
mode
=
3
mode
=
1
if
mode
==
1
:
# cell-line variables
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment