Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
FIC_DK_P GA Solving
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
6
Issues
6
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
M3TAL
FIC_DK_P GA Solving
Commits
683c02c2
Commit
683c02c2
authored
May 20, 2020
by
Alexis Lebis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Setting config for cli
parent
168b0342
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
main.cpp
application/main.cpp
+10
-4
No files found.
application/main.cpp
View file @
683c02c2
...
...
@@ -59,6 +59,12 @@ int main(int argc, char* argv[]){
unsigned
int
MAXPRE
=
parser
.
createParam
((
unsigned
int
)(
3
),
"maxPre"
,
"maximal competency by course"
,
'P'
,
"Param"
).
value
();
unsigned
int
CBYTF
=
parser
.
createParam
((
unsigned
int
)(
2
),
"cbyTF"
,
"course by time frame to pick"
,
'A'
,
"Param"
).
value
();
//PROFESSION PARAMETERS
unsigned
int
JOB_MINPRE
=
parser
.
createParam
((
unsigned
int
)(
2
),
"jobMinPre"
,
"minimum competency prerequisite by a job"
,
'j'
,
"Param"
).
value
();
unsigned
int
JOB_MAXPRE
=
parser
.
createParam
((
unsigned
int
)(
4
),
"jobMaxPre"
,
"maximal competency prerequisite by a job"
,
'J'
,
"Param"
).
value
();
double
JOB_MINMAG
=
parser
.
createParam
((
double
)(
0.5
),
"jobMinMag"
,
"miminal magnitude for a job"
,
'h'
,
"Param"
).
value
();
double
JOB_MAXMAG
=
parser
.
createParam
((
double
)(
0.95
),
"jobMaxMag"
,
"maxima magnitude for a job"
,
'H'
,
"Param"
).
value
();
//EVOLUTION ENGINE PARAMETERS
unsigned
int
POPSIZE
=
parser
.
createParam
((
unsigned
int
)(
100
),
"popSize"
,
"Population size"
,
'P'
,
"Evolution Engine"
).
value
();
double
PMUT
=
parser
.
createParam
((
double
)(
0.5
),
"pMut"
,
"mutation rate"
,
'x'
,
"Evolution Engine"
).
value
();
...
...
@@ -89,10 +95,10 @@ int main(int argc, char* argv[]){
assert
(
pb
.
checkConfig
());
job
.
setRequiredECTS
(
Profession
::
GenerationType
::
RANDOM
);
job
.
set_cfg_minimalPrerequisites
(
2
);
job
.
set_cfg_maximalPrerequisites
(
5
);
job
.
set_cfg_minimalMagnitude
(
0.8
);
job
.
set_cfg_maximalMagnitude
(
1.0
);
job
.
set_cfg_minimalPrerequisites
(
JOB_MINPRE
);
job
.
set_cfg_maximalPrerequisites
(
JOB_MAXPRE
);
job
.
set_cfg_minimalMagnitude
(
JOB_MINMAG
);
job
.
set_cfg_maximalMagnitude
(
JOB_MAXMAG
);
Profession
::
generateProfession
(
job
,
Profession
::
GenerationType
::
RANDOM
,
pb
,
7777
);
assert
(
job
.
checkConfig
());
...
...
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