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
bcc70b52
Commit
bcc70b52
authored
Dec 02, 2020
by
Alexis Lebis
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix cap at 1 for distrib
parent
2382f356
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
problem.cpp
src/model/problem.cpp
+4
-2
No files found.
src/model/problem.cpp
View file @
bcc70b52
...
...
@@ -481,8 +481,10 @@ int CSDVP::CSDVP_COUNTER = 0;
if
(
pb
.
_distributedCompetencies
.
at
(
idx
)
==
-
1
)
//not yet assigned? Then first 0
pb
.
_distributedCompetencies
.
at
(
idx
)
=
0
;
pb
.
_distributedCompetencies
.
at
(
idx
)
+=
cpt
.
magnitude
().
value
();
if
(
pb
.
_distributedCompetencies
.
at
(
idx
)
>
1
)
//if range overflow --> rebase to one
pb
.
_distributedCompetencies
.
at
(
idx
)
=
1
;
// Overflow in distributedCompetencies is not an issue since it tracks how many magnitude has been put into a comp
// if(pb._distributedCompetencies.at(idx) > 1) //if range overflow --> rebase to one
// pb._distributedCompetencies.at(idx) = 1;
}
// --------- END GENERATION RELATED FUNCTIONS ---------
...
...
Alexis Lebis
@alexis.lebis
mentioned in issue
#22 (closed)
·
Dec 02, 2020
mentioned in issue
#22 (closed)
mentioned in issue #22
Toggle commit list
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