Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Ridepooling_Simulations
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rhaag
Ridepooling_Simulations
Commits
39f0d542
Commit
39f0d542
authored
3 years ago
by
Ruben Haag
Browse files
Options
Downloads
Patches
Plain Diff
Added option for logscale
parent
32c25072
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
put_together.jl
+0
-3
0 additions, 3 deletions
put_together.jl
sim.jl
+1
-1
1 addition, 1 deletion
sim.jl
sim_functions.jl
+23
-0
23 additions, 0 deletions
sim_functions.jl
with
24 additions
and
4 deletions
put_together.jl
+
0
−
3
View file @
39f0d542
...
...
@@ -39,7 +39,4 @@ for name in model_filenames
end
#TODO put all the generated models in an archive file and save it to the archiving location
This diff is collapsed.
Click to expand it.
sim.jl
+
1
−
1
View file @
39f0d542
...
...
@@ -90,7 +90,7 @@ include(paths[:dispatcher]*"dispatcher.jl")
x
,
y
=
getValue
(
index
-
1
,
4
,
60
,
40
,
0.2
,
2.5
,
60
)
x
,
y
=
get
LogLog
Value
(
index
-
1
,
4
,
60
00
,
40
,
0.2
,
6000
,
60
)
println
(
"
$
x
\t
$
y"
)
random_gens
=
Dict
(
request_type
=>
[
:
notRandom
,
y
*
t0
])
...
...
This diff is collapsed.
Click to expand it.
sim_functions.jl
+
23
−
0
View file @
39f0d542
...
...
@@ -31,8 +31,31 @@ function getValue(index, xmin, xmax, xlen, ymin, ymax, ylen)
y
=
trunc
(
Int64
,
index
/
ylen
)
*
ystep
+
ymin
return
x
,
y
end
function
getLogValue
(
index
,
xmin
,
xmax
,
xlen
::
Int64
,
ymin
,
ymax
,
ylen
::
Int64
)
xs
=
exp
.
(
LinRange
(
log
(
xmin
),
log
(
xmax
),
xlen
))
ys
=
LinRange
(
log
(
ymin
),
log
(
ymax
),
ylen
)
x
=
xs
[(
index
-
1
)
%
xlen
+
1
]
y
=
ys
[
trunc
(
Int64
,
(
index
-
1
)
/
ylen
)
+
1
]
return
x
,
y
end
"""
"""
function
getLogLogValue
(
index
,
xmin
,
xmax
,
xlen
::
Int64
,
ymin
,
ymax
,
ylen
::
Int64
)
xs
=
exp
.
(
LinRange
(
log
(
xmin
),
log
(
xmax
),
xlen
))
ys
=
exp
.
(
LinRange
(
log
(
ymin
),
log
(
ymax
),
ylen
))
println
(
length
(
xs
));
x
=
xs
[(
index
-
1
)
%
xlen
+
1
]
y
=
ys
[
trunc
(
Int64
,
(
index
-
1
)
/
ylen
)
+
1
]
return
x
,
y
end
"""
Function for Running a RidePooling simulation with the normalized Frequency x
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment