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
b44d6b7b
Commit
b44d6b7b
authored
Nov 12, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output ACO inputs in the start of the spreadsheet to be easier to review
parent
609d587a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
dream/plugins/Batches/BatchesStochasticACO.py
dream/plugins/Batches/BatchesStochasticACO.py
+26
-0
No files found.
dream/plugins/Batches/BatchesStochasticACO.py
View file @
b44d6b7b
...
...
@@ -100,7 +100,33 @@ class BatchesStochasticACO(BatchesACO):
# number of replications for stochastic ants in the end
numberOfReplicationsInTheEnd
=
data
[
'general'
].
get
(
'numberOfReplicationsInTheEnd'
,
6
)
self
.
outputSheet
.
write
(
self
.
rowIndex
,
0
,
'ACO attributes'
)
self
.
rowIndex
+=
1
self
.
outputSheet
.
write
(
self
.
rowIndex
,
1
,
'Number Of Generations'
)
self
.
outputSheet
.
write
(
self
.
rowIndex
,
2
,
int
(
data
[
"general"
][
"numberOfGenerations"
]))
self
.
rowIndex
+=
1
self
.
outputSheet
.
write
(
self
.
rowIndex
,
1
,
'Number Of Ants Per Generation'
)
self
.
outputSheet
.
write
(
self
.
rowIndex
,
2
,
int
(
data
[
"general"
][
"numberOfAntsPerGenerations"
]))
self
.
rowIndex
+=
1
self
.
outputSheet
.
write
(
self
.
rowIndex
,
1
,
'Stochastic Ants in Generation'
)
self
.
outputSheet
.
write
(
self
.
rowIndex
,
2
,
numberOfAntsForStochasticEvaluationInGeneration
)
self
.
rowIndex
+=
1
self
.
outputSheet
.
write
(
self
.
rowIndex
,
1
,
'Number of replications inside generation'
)
self
.
outputSheet
.
write
(
self
.
rowIndex
,
2
,
numberOfReplicationsInGeneration
)
self
.
rowIndex
+=
1
self
.
outputSheet
.
write
(
self
.
rowIndex
,
1
,
'Stochastic Ants in the end'
)
self
.
outputSheet
.
write
(
self
.
rowIndex
,
2
,
numberOfAntsForStochasticEvaluationInTheEnd
)
self
.
rowIndex
+=
1
self
.
outputSheet
.
write
(
self
.
rowIndex
,
1
,
'Number of replications in the end'
)
self
.
outputSheet
.
write
(
self
.
rowIndex
,
2
,
numberOfReplicationsInTheEnd
)
self
.
rowIndex
+=
1
assert
max_results
>=
1
assert
numberOfAntsForNextGeneration
>=
1
\
and
numberOfAntsForNextGeneration
<=
int
(
data
[
"general"
][
"numberOfAntsPerGenerations"
])
...
...
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