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
adedcb1e
Commit
adedcb1e
authored
May 18, 2020
by
Alexis Lebis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed stc::cout printing
parent
f7666c03
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
initConstraint.h
src/model/ea/initConstraint.h
+11
-11
No files found.
src/model/ea/initConstraint.h
View file @
adedcb1e
...
@@ -36,22 +36,22 @@ class eoInitConstraintCSDVP: public eoInit<EOT>
...
@@ -36,22 +36,22 @@ class eoInitConstraintCSDVP: public eoInit<EOT>
possibleIDbyTF
[
tmp
[
j
]
-
pb
.
cfg_minimalTimeFrame
()].
push_back
(
i
);
possibleIDbyTF
[
tmp
[
j
]
-
pb
.
cfg_minimalTimeFrame
()].
push_back
(
i
);
}
}
}
}
for
(
int
i
=
0
;
i
<
possibleIDbyTF
.
size
();
i
++
){
//
for(int i=0; i<possibleIDbyTF.size(); i++){
std
::
cout
<<
"Possible course in TF "
<<
i
+
pb
.
cfg_minimalTimeFrame
()
<<
": "
;
//
std::cout << "Possible course in TF " << i+pb.cfg_minimalTimeFrame() << ": ";
for
(
int
j
=
0
;
j
<
possibleIDbyTF
[
i
].
size
();
j
++
){
//
for(int j=0; j<possibleIDbyTF[i].size(); j++){
std
::
cout
<<
possibleIDbyTF
[
i
][
j
]
<<
" "
;
//
std::cout << possibleIDbyTF[i][j] << " ";
}
//
}
std
::
cout
<<
std
::
endl
;
//
std::cout << std::endl;
}
//
}
}
}
virtual
void
operator
()(
EOT
&
chrom
){
virtual
void
operator
()(
EOT
&
chrom
){
int
cpt
=
0
;
int
cpt
=
0
;
std
::
cout
<<
"Enter init"
<<
std
::
endl
;
//
std::cout << "Enter init" << std::endl;
unsigned
int
r
=
eo
::
rng
.
random
(
possibleIDbyTF
[
0
].
size
());
unsigned
int
r
=
eo
::
rng
.
random
(
possibleIDbyTF
[
0
].
size
());
chrom
.
resize
(
0
);
chrom
.
resize
(
0
);
chrom
.
push_back
(
possibleIDbyTF
[
0
][
r
]);
chrom
.
push_back
(
possibleIDbyTF
[
0
][
r
]);
std
::
cout
<<
"push "
<<
possibleIDbyTF
[
0
][
r
]
<<
std
::
endl
;
//
std::cout << "push " << possibleIDbyTF[0][r] << std::endl;
for
(
int
i
=
1
;
i
<
chromSize
;
i
++
){
for
(
int
i
=
1
;
i
<
chromSize
;
i
++
){
cpt
=
0
;
cpt
=
0
;
r
=
eo
::
rng
.
random
(
possibleIDbyTF
[
i
/
sizeTF
].
size
());
r
=
eo
::
rng
.
random
(
possibleIDbyTF
[
i
/
sizeTF
].
size
());
...
@@ -60,9 +60,9 @@ class eoInitConstraintCSDVP: public eoInit<EOT>
...
@@ -60,9 +60,9 @@ class eoInitConstraintCSDVP: public eoInit<EOT>
cpt
++
;
cpt
++
;
}
}
if
(
cpt
<
maxVal
){
if
(
cpt
<
maxVal
){
std
::
cout
<<
i
<<
" "
<<
r
<<
" "
;
//
std::cout << i << " " << r << " ";
chrom
.
push_back
(
possibleIDbyTF
[
i
/
sizeTF
][
r
]);
chrom
.
push_back
(
possibleIDbyTF
[
i
/
sizeTF
][
r
]);
std
::
cout
<<
"push "
<<
possibleIDbyTF
[
i
/
sizeTF
][
r
]
<<
std
::
endl
;
//
std::cout << "push " << possibleIDbyTF[i/sizeTF][r] << std::endl;
}
}
else
{
else
{
r
=
eo
::
rng
.
random
(
maxVal
);
r
=
eo
::
rng
.
random
(
maxVal
);
...
...
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