Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
adc2018-system
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
adc2018
adc2018-system
Commits
b7744d9a
Commit
b7744d9a
authored
Aug 23, 2018
by
tawada
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update
parent
20ce9b07
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
Makefile
resolver/Makefile
+4
-1
resolver.py
resolver/resolver.py
+1
-1
No files found.
resolver/Makefile
View file @
b7744d9a
...
@@ -5,7 +5,7 @@ CXX = g++
...
@@ -5,7 +5,7 @@ CXX = g++
CXXFLAGS
=
-Wall
-O3
CXXFLAGS
=
-Wall
-O3
PYTHON
=
python3
PYTHON
=
python3
.PHONY
:
run
.PHONY
:
run
all test clean
run
:
run
:
$(PYTHON)
$(TARGET)
.py
-i
dataAsample.txt
$(PYTHON)
$(TARGET)
.py
-i
dataAsample.txt
...
@@ -14,6 +14,9 @@ all: $(TARGET)
...
@@ -14,6 +14,9 @@ all: $(TARGET)
$(TARGET)
:
$(OBJS)
$(TARGET)
:
$(OBJS)
$(CXX)
-o
$@
$(OBJS)
$(CXX)
-o
$@
$(OBJS)
test
:
for
i
in
`
seq
1 34
`
;
do
$(PYTHON)
$(TARGET)
.py
-i
`
printf
"../ADC2017_Q_A/all/A/A%02d.txt"
$$
i
`
-o
`
printf
"A_R%02d.txt"
$$
i
`
;
done
clean
:
clean
:
rm
*
.o
rm
*
.o
rm
$(TARGET)
rm
$(TARGET)
resolver/resolver.py
View file @
b7744d9a
...
@@ -325,7 +325,7 @@ class MAP:
...
@@ -325,7 +325,7 @@ class MAP:
def
optimize
(
self
):
def
optimize
(
self
):
#ライン数の10倍の回数だけ「線の引き剥がし・再配線」を繰り返す.
#ライン数の10倍の回数だけ「線の引き剥がし・再配線」を繰り返す.
iteration
=
len
(
self
.
line
)
*
10
iteration
=
min
(
len
(
self
.
line
)
*
10
,
200
)
for
i
in
range
(
iteration
):
for
i
in
range
(
iteration
):
m
.
optLine
(
np
.
random
.
randint
(
len
(
self
.
line
))
+
1
)
m
.
optLine
(
np
.
random
.
randint
(
len
(
self
.
line
))
+
1
)
...
...
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