Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
APACHES.Prolog_CSDVP
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
APACHES.Prolog_CSDVP
Commits
2ebdee14
Commit
2ebdee14
authored
Dec 20, 2019
by
Alexis Lebis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent Mastery overflow
parent
27ec3fb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
prologCSDVP.pl
prologCSDVP.pl
+7
-3
No files found.
prologCSDVP.pl
View file @
2ebdee14
...
...
@@ -38,8 +38,8 @@ ects([
]).
finalSkills
([
[
0
,
0
],
[
1
,
2
],
[
0
,
2
],
[
1
,
3
],
[
5
,
3
]
]).
...
...
@@ -147,6 +147,10 @@ timeConstraintsSolver(Course,PositionInSol):- nbCourseBySemester(C), X is div(Po
timeConstraintsCaller
(
Course
,
PositionInSol
):-
timeConstraintsSolver
(
Course
,
PositionInSol
).
/*
=== PREREQUISITE CONSTRAINTS
*/
preventMasteryOverflow
(
X
,
X
):-
X
>=
0
,
X
=<
100
.
preventMasteryOverflow
(
X
,
0
):-
X
<
0
.
preventMasteryOverflow
(
X
,
100
):-
X
>
100
.
prerequisiteConstraintsSolverFzDc
(
_
,
[]).
prerequisiteConstraintsSolverFzDc
(
_
,
[[]]).
prerequisiteConstraintsSolverFzDc
(
FuzzySet
,
[[
P
,
VP
]|
Prereq
]):-
member
([
P
,
V
],
FuzzySet
),
V
>=
VP
,
prerequisiteConstraintsSolverFzDc
(
FuzzySet
,
Prereq
).
...
...
@@ -165,7 +169,7 @@ computeDecay([_, [M], [T]], UpperTF, SLevel):- nbCourseBySemester(N), CurrentSem
computeDecay
([
SID
,
[
M1
,
M2
|
M
],
[
T1
,
T2
|
T
]],
UpperTF
,
SLevel
):-
nbCourseBySemester
(
N
),
CS1
is
div
(
T1
,
N
),
CS2
is
div
(
T2
,
N
),
Range
is
CS2
-
CS1
,
decayFunction
(
Range
,
Y
),
TmpSLevel
is
M1
-
Y
,
computeDecay
([
SID
,
[
M2
|
M
],
[
T2
|
T
]],
UpperTF
,
TmpSLevel2
),
SLevel
is
TmpSLevel
+
TmpSLevel2
.
decayFunction
(
Range
,
Y
),
TmpSLevel
is
M1
-
Y
,
computeDecay
([
SID
,
[
M2
|
M
],
[
T2
|
T
]],
UpperTF
,
TmpSLevel2
),
BeforeSLevel
is
TmpSLevel
+
TmpSLevel2
,
preventMasteryOverflow
(
BeforeSLevel
,
SLevel
)
.
exploreMasteryByCourse
([],
_
,
Struct
,
Struct
):-!.
exploreMasteryByCourse
([[
_
,
Skills
|
_
]],
Depth
,
Struct
,
NewStruc
):-
exploreMasteryByCourseSkills
(
Skills
,
Depth
,
Struct
,
NewStruc
),!.
...
...
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