Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
3a464a05
Commit
3a464a05
authored
Apr 02, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
counter initiation moved out of the generation loop
parent
b753996f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
dream/plugins/ACO.py
dream/plugins/ACO.py
+1
-2
No files found.
dream/plugins/ACO.py
View file @
3a464a05
...
...
@@ -70,10 +70,10 @@ class ACO(plugin.ExecutionPlugin):
# Number of times new ants are to be created, i.e. number of generations (a
# generation can have more than 1 ant)
seedPlus
=
0
for
i
in
range
(
int
(
data
[
"general"
][
"numberOfGenerations"
])):
scenario_list
=
[]
# for the distributor
# number of ants created per generation
seedPlus
=
0
for
j
in
range
(
int
(
data
[
"general"
][
"numberOfAntsPerGenerations"
])):
# an ant dictionary to contain rule to queue assignment information
ant
=
{}
...
...
@@ -95,7 +95,6 @@ class ACO(plugin.ExecutionPlugin):
ant
[
'key'
]
=
ant_key
ant
[
'input'
]
=
ant_data
scenario_list
.
append
(
ant
)
if
distributor
is
None
:
# synchronous
for
ant
in
scenario_list
:
...
...
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