Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
KTLA Study
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
KTLA Study
Commits
1ddff802
Commit
1ddff802
authored
Feb 11, 2022
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
1a911940
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
Route.tla
Route.tla
+5
-1
Route.toolbox/Route___Model_1.launch
Route.toolbox/Route___Model_1.launch
+1
-0
No files found.
Route.tla
View file @
1ddff802
...
...
@@ -160,8 +160,12 @@ PathCorrect(p) ==
[] Len(p) = 1 -> p[1] \in Nodes
[] OTHER -> {p[1],p[2]} \in Edges /\ PathCorrect(Tail(p))
\* SeqN is like Seq but produces sequences with Len =< N
SeqN(S, N) == UNION {[1..n -> S] : n \in 1..N}
\* PathMinimal verifies that path p has minimal length in between p0 and pEND.
PathMinimal(p) == ~ \E pp \in Seq
(Nodes
) :
PathMinimal(p) == ~ \E pp \in Seq
N(Nodes, Cardinality(Nodes)
) :
/\ pp /= << >>
/\ Len(pp) < Len(p)
/\ pp[1] = p[1]
...
...
Route.toolbox/Route___Model_1.launch
View file @
1ddff802
...
...
@@ -39,5 +39,6 @@
<listEntry
value=
"1[ n \in Nodes |-> ParentPath(n) ]"
/>
<listEntry
value=
"0[ n \in Nodes |-> LET p == ParentPath(n) IN << PathCorrect(p), PathMinimal(p) >> ]"
/>
<listEntry
value=
"1[ n \in Nodes |-> PathCorrect(ParentPath(n)) ]"
/>
<listEntry
value=
"1[ n \in Nodes |-> PathMinimal(ParentPath(n)) ]"
/>
</listAttribute>
</launchConfiguration>
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