Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
ST7-Intel
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Simon Maréchal
ST7-Intel
Commits
d5ce408d
Commit
d5ce408d
authored
Apr 2, 2021
by
Carlos Santos Garcia
Browse files
Options
Downloads
Patches
Plain Diff
Corrected bugs
parent
b6aefc2f
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Appli-iso3dfd/ACO.py
+1
-1
1 addition, 1 deletion
Appli-iso3dfd/ACO.py
Appli-iso3dfd/compute_path.py
+2
-2
2 additions, 2 deletions
Appli-iso3dfd/compute_path.py
with
3 additions
and
3 deletions
Appli-iso3dfd/ACO.py
+
1
−
1
View file @
d5ce408d
...
@@ -152,7 +152,7 @@ if __name__ == "__main__":
...
@@ -152,7 +152,7 @@ if __name__ == "__main__":
nb_ants
=
2
nb_ants
=
2
tau_0
=
Q
*
300
tau_0
=
Q
*
300
n_iter
=
1
n_iter
=
1
fancy_strategy
=
"
AS
"
fancy_strategy
=
"
crazy
"
# Parameters for compilation and execution of iso3dfd
# Parameters for compilation and execution of iso3dfd
nb_threads
=
8
nb_threads
=
8
...
...
This diff is collapsed.
Click to expand it.
Appli-iso3dfd/compute_path.py
+
2
−
2
View file @
d5ce408d
...
@@ -84,12 +84,12 @@ def compute_path(tau, alpha, n1_size, n2_size, n3_size, fancy_strategy = 'AS'):
...
@@ -84,12 +84,12 @@ def compute_path(tau, alpha, n1_size, n2_size, n3_size, fancy_strategy = 'AS'):
path
=
[]
path
=
[]
sequence
,
weights
=
proba
(
0
,
alpha
,
tau
,
n1_size
,
n2_size
,
n3_size
,
n_cbx
,
n_cby
,
n_cbz
)
sequence
,
weights
=
proba
(
0
,
alpha
,
tau
,
n1_size
,
n2_size
,
n3_size
,
n_cbx
,
n_cby
,
n_cbz
)
crazy
=
False
if
fancy_strategy
==
'
crazy
'
:
if
fancy_strategy
==
'
crazy
'
:
r
=
r
andom
.
random
()
r
=
r
d
.
random
()
if
r
<
0.1
:
if
r
<
0.1
:
crazy
=
True
crazy
=
True
else
:
else
:
crazy
=
False
new_node
=
rd
.
choices
(
sequence
,
weights
)[
0
]
new_node
=
rd
.
choices
(
sequence
,
weights
)[
0
]
path
.
append
(
new_node
)
path
.
append
(
new_node
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment