Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ttc18
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
stgroup
ttc18
Merge requests
!1
Dynamic parameters in solver genetic
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Dynamic parameters in solver genetic
automic_geneticGenerealParam
into
autonomic_genetic
Overview
2
Commits
2
Changes
1
All threads resolved!
Hide all comments
Merged
Andrii Zakharchuk
requested to merge
automic_geneticGenerealParam
into
autonomic_genetic
6 years ago
Overview
2
Commits
2
Changes
1
All threads resolved!
Hide all comments
Expand
0
0
Merge request reports
Compare
autonomic_genetic
version 1
294888d3
6 years ago
autonomic_genetic (base)
and
latest version
latest version
9335ca56
2 commits,
6 years ago
version 1
294888d3
1 commit,
6 years ago
1 file
+
26
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
jastadd-mquat-solver-genetic/src/main/java/de/tudresden/inf/st/mquat/solving/genetic/GeneticMain.java
+
26
−
2
Options
@@ -63,10 +63,34 @@ public class GeneticMain {
int
generations
=
200000
;
int
populationSize
=
1000
;
if
(
args
.
length
==
2
)
{
System
.
out
.
println
(
"============ Args: "
+
args
[
0
]
+
" and "
+
args
[
1
]);
logger
.
debug
(
"============ Args: "
+
args
[
0
]
+
" and "
+
args
[
1
]);
generations
=
Integer
.
parseInt
(
args
[
0
]);
populationSize
=
Integer
.
parseInt
(
args
[
1
]);
System
.
out
.
println
(
"============ generations = "
+
generations
+
", populationSize = "
+
populationSize
);
logger
.
debug
(
"============ generations = "
+
generations
+
", populationSize = "
+
populationSize
);
}
else
if
(
args
.
length
==
15
){
logger
.
debug
(
"============ Args: "
+
String
.
join
(
"and"
,
args
));
generations
=
Integer
.
parseInt
(
args
[
0
]);
populationSize
=
Integer
.
parseInt
(
args
[
1
]);
numTopLevelComponents
=
Integer
.
parseInt
(
args
[
2
]);
avgNumImplSubComponents
=
Integer
.
parseInt
(
args
[
3
]);
implSubComponentStdDerivation
=
Integer
.
parseInt
(
args
[
4
]);
avgNumCompSubComponents
=
Integer
.
parseInt
(
args
[
5
]);
compSubComponentStdDerivation
=
Integer
.
parseInt
(
args
[
6
]);
componentDepth
=
Integer
.
parseInt
(
args
[
7
]);
numImplementations
=
Integer
.
parseInt
(
args
[
8
]);
excessComputeResourceRatio
=
Double
.
parseDouble
(
args
[
9
]);
numRequests
=
Integer
.
parseInt
(
args
[
10
]);
numCpus
=
Integer
.
parseInt
(
args
[
11
]);
seed
=
Integer
.
parseInt
(
args
[
12
]);
timeoutValue
=
Integer
.
parseInt
(
args
[
13
]);
timeoutUnit
=
args
[
14
];
logger
.
debug
(
String
.
format
(
"============ generations = %d populationSize = %d numTopLevelComponents = %d"
+
" avgNumImplSubComponents = %d implSubComponentStdDerivation = %d avgNumCompSubComponents = %d compSubComponentStdDerivation = %d componentDepth = %d"
+
" numImplementations = %d excessComputeResourceRatio = %f numRequests = %d numCpus = %d seed = %d timeoutValue = %d timeoutUnit = %s"
,
generations
,
populationSize
,
numTopLevelComponents
,
avgNumImplSubComponents
,
implSubComponentStdDerivation
,
avgNumCompSubComponents
,
compSubComponentStdDerivation
,
componentDepth
,
numImplementations
,
excessComputeResourceRatio
,
numRequests
,
numCpus
,
seed
,
timeoutValue
,
timeoutUnit
));
}
ScenarioGenerator
generator
=
new
ScenarioGenerator
(
new
ScenarioDescription
(
numTopLevelComponents
,
Loading