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
aac66378
Commit
aac66378
authored
May 15, 2020
by
Alexis Lebis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CSDVP bad config protection ++
parent
136dfac7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
problem.cpp
src/model/problem.cpp
+2
-1
No files found.
src/model/problem.cpp
View file @
aac66378
...
...
@@ -158,7 +158,8 @@ int CSDVP::CSDVP_COUNTER = 0;
throw
CSDVPBadlyConfiguratedException
(
"this->_quantityAvailableCompetencies < this->_maximalCompetencyByCourse"
);
if
(
this
->
_pickedCoursesByTimeFrame
>
this
->
_minimalCoursesByTimeFrame
)
throw
CSDVPBadlyConfiguratedException
(
"this->_pickedCoursesByTimeFrame > this->_minimalCoursesByTimeFrame"
);
if
(
this
->
_pickedCoursesByTimeFrame
*
(
(
this
->
_maximalTimeFrame
-
this
->
_minimalTimeFrame
)
+
1
)
>
this
->
_quantityAvailableCourses
)
throw
CSDVPBadlyConfiguratedException
(
"this->_pickedCoursesByTimeFrame * ( (this->_maximalTimeFrame - this->_minimalTimeFrame) + 1) > this->_quantityAvailableCourses"
);
this
->
_isConfig
=
true
;
return
this
->
_isConfig
;
}
...
...
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