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
24b89ed8
Commit
24b89ed8
authored
May 13, 2020
by
Alexis Lebis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new mapCoursePosition func
parent
82f7cb57
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
problem.cpp
src/model/problem.cpp
+7
-0
problem.h
src/model/problem.h
+4
-0
No files found.
src/model/problem.cpp
View file @
24b89ed8
...
...
@@ -179,6 +179,13 @@ int CSDVP::CSDVP_COUNTER = 0;
}
}
}
int
CSDVP
::
mapCoursePosition
(
const
Course
&
c
)
{
for
(
int
i
=
0
;
i
<<
this
->
coursesCatalogue
().
size
();
i
++
)
if
(
c
==
this
->
coursesCatalogue
().
at
(
i
))
return
i
;
return
-
1
;
}
// === END FUNC
// === STATIC
...
...
src/model/problem.h
View file @
24b89ed8
...
...
@@ -133,6 +133,10 @@ class CSDVP
return
this
->
_timeFrames
.
size
()
*
this
->
_pickedCoursesByTimeFrame
;
return
-
1
;
//if not config
}
/** Maps a course into its position inside the this->courseCatalogue().
* returns the index of the course within the coursesCatalogue [0;size[ ; otherwise return -1 if the course is not found.
*/
int
mapCoursePosition
(
const
Course
&
c
);
///@todo getDecayPolitic
// === MUTATOR
...
...
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