Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rt-proofs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sophie Quinton
rt-proofs
Commits
429e36eb
Commit
429e36eb
authored
Oct 06, 2016
by
Felipe Cerqueira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Leave base schedule arbitrary during construction
parent
8c68c87a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
model/uni/transformation/construction.v
model/uni/transformation/construction.v
+3
-3
No files found.
model/uni/transformation/construction.v
View file @
429e36eb
...
@@ -20,8 +20,8 @@ Module ScheduleConstruction.
...
@@ -20,8 +20,8 @@ Module ScheduleConstruction.
Variable
build_schedule
:
Variable
build_schedule
:
schedule
arr_seq
->
time
->
option
(
JobIn
arr_seq
).
schedule
arr_seq
->
time
->
option
(
JobIn
arr_seq
).
(* Then, starting from
the empty schedule as a bas
e, ... *)
(* Then, starting from
a base schedul
e, ... *)
Definition
empty_schedule
:
schedule
arr_seq
:
=
fun
t
=>
None
.
Variable
base_sched
:
schedule
arr_seq
.
(* ...we can update individual times using the build_schedule function, ... *)
(* ...we can update individual times using the build_schedule function, ... *)
Definition
update_schedule
(
prev_sched
:
schedule
arr_seq
)
Definition
update_schedule
(
prev_sched
:
schedule
arr_seq
)
...
@@ -36,7 +36,7 @@ Module ScheduleConstruction.
...
@@ -36,7 +36,7 @@ Module ScheduleConstruction.
if
t_max
is
t_prev
.+
1
then
if
t_max
is
t_prev
.+
1
then
update_schedule
(
schedule_prefix
t_prev
)
t_prev
.+
1
update_schedule
(
schedule_prefix
t_prev
)
t_prev
.+
1
else
else
update_schedule
empty_schedule
0
.
update_schedule
base_sched
0
.
(* Based on the schedule prefixes, we construct a complete schedule. *)
(* Based on the schedule prefixes, we construct a complete schedule. *)
Definition
build_schedule_from_prefixes
:
=
fun
t
=>
schedule_prefix
t
t
.
Definition
build_schedule_from_prefixes
:
=
fun
t
=>
schedule_prefix
t
t
.
...
...
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