Commit b7744d9a authored by  tawada's avatar tawada

Update

parent 20ce9b07
...@@ -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)
...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment