Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
watcag-public
fpga-syspart
Commits
721e58dd
Commit
721e58dd
authored
Jul 01, 2020
by
LongChan
Browse files
runnable
parent
d4c582df
Changes
2
Hide whitespace changes
Inline
Side-by-side
optimization_algo/approaches/cma_approach_square_size.py
View file @
721e58dd
...
@@ -263,6 +263,7 @@ class cma_approach(object):
...
@@ -263,6 +263,7 @@ class cma_approach(object):
self
.
i
+=
1
self
.
i
+=
1
self
.
ending_iter
=
self
.
i
self
.
ending_iter
=
self
.
i
return
temp_out
def
report
(
self
):
def
report
(
self
):
##print(self.i, self.es.sigma)
##print(self.i, self.es.sigma)
...
...
optimization_algo/approaches/sq_approach_faster.py
View file @
721e58dd
...
@@ -67,7 +67,7 @@ def trial(prop):
...
@@ -67,7 +67,7 @@ def trial(prop):
success
,
out
=
instance
.
report
()
success
,
out
=
instance
.
report
()
trials
+=
1
trials
+=
1
process_out
.
append
(
out
)
process_out
.
append
(
out
)
return
out
return
process_
out
topology
=
sys
.
argv
[
1
]
topology
=
sys
.
argv
[
1
]
k
=
int
(
sys
.
argv
[
2
])
k
=
int
(
sys
.
argv
[
2
])
...
@@ -83,8 +83,8 @@ if __name__ == "__main__":
...
@@ -83,8 +83,8 @@ if __name__ == "__main__":
MAX_TRIAL
=
sys
.
argv
[
1
]
MAX_TRIAL
=
sys
.
argv
[
1
]
approaches
=
[]
approaches
=
[]
for
idx
,
n
in
enumerate
(
nets
[
4
:
5
]
):
for
idx
,
n
in
enumerate
(
nets
):
for
part
in
range
(
3
,
max_partitions
[
4
:
5
][
idx
]
+
1
):
for
part
in
range
(
3
,
max_partitions
[
idx
]
+
1
):
for
seed
in
seedings
:
for
seed
in
seedings
:
for
pop
in
pop_size
:
for
pop
in
pop_size
:
for
tar
in
targets
:
for
tar
in
targets
:
...
...
Write
Preview
Supports
Markdown
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