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
1359fcb3
Commit
1359fcb3
authored
May 18, 2020
by
Alexis Lebis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update displayer
parent
1340937a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
main.cpp
application/main.cpp
+35
-0
No files found.
application/main.cpp
View file @
1359fcb3
...
@@ -256,6 +256,41 @@ int main(int argc, char* argv[]){
...
@@ -256,6 +256,41 @@ int main(int argc, char* argv[]){
std
::
cout
<<
"===== BEST INDIVIDU ====="
<<
std
::
endl
;
std
::
cout
<<
"===== BEST INDIVIDU ====="
<<
std
::
endl
;
pop
.
best_element
().
printOn
(
std
::
cout
);
pop
.
best_element
().
printOn
(
std
::
cout
);
std
::
cout
<<
" fitness:"
<<
pop
.
best_element
().
fitness
()
<<
std
::
endl
;
std
::
cout
<<
" fitness:"
<<
pop
.
best_element
().
fitness
()
<<
std
::
endl
;
std
::
cout
<<
"Stats & metrics:
\n
"
<<
std
::
endl
;
std
::
pair
<
bool
,
double
>
resECTS
=
ctrECTS
.
integrityCheck
(
pop
.
best_element
());
std
::
pair
<
bool
,
double
>
resRep
=
ctrRep
.
integrityCheck
(
pop
.
best_element
());
std
::
pair
<
bool
,
double
>
resJob
=
ctrJob
.
integrityCheck
(
pop
.
best_element
());
std
::
pair
<
bool
,
double
>
resPrq
=
ctrPrq
.
integrityCheck
(
pop
.
best_element
());
std
::
cout
<<
"ECTS: "
;
if
(
resECTS
.
first
)
std
::
cout
<<
"succeed"
;
else
std
::
cout
<<
"failed"
;
std
::
cout
<<
" | value: "
<<
resECTS
.
second
<<
std
::
endl
;
std
::
cout
<<
"Repetition: "
;
if
(
resRep
.
first
)
std
::
cout
<<
"succeed"
;
else
std
::
cout
<<
"failed"
;
std
::
cout
<<
" | value: "
<<
resRep
.
second
<<
std
::
endl
;
std
::
cout
<<
"Job: "
;
if
(
resJob
.
first
)
std
::
cout
<<
"succeed"
;
else
std
::
cout
<<
"failed"
;
std
::
cout
<<
" | value: "
<<
resJob
.
second
<<
std
::
endl
;
std
::
cout
<<
"Prereq: "
;
if
(
resPrq
.
first
)
std
::
cout
<<
"succeed"
;
else
std
::
cout
<<
"failed"
;
std
::
cout
<<
" | value: "
<<
resPrq
.
second
<<
std
::
endl
;
std
::
cout
<<
"==============="
<<
std
::
endl
;
std
::
cout
<<
"==============="
<<
std
::
endl
;
std
::
cout
<<
"cpt: "
<<
cross
.
cpt
<<
std
::
endl
;
std
::
cout
<<
"cpt: "
<<
cross
.
cpt
<<
std
::
endl
;
...
...
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