Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd4a002b

Browse files
authored
Sim reps & misc (#54)
* Sim replicationsCan simulate multiple replications (each with different calls) and collect statistics.Can simulate the replications in parallel with multi-threading, see function `simulateReps!`.For sim config, can specify 'callGenConfig' input file to generate calls instead of a 'calls' file; also set 'numCallsFiles' element in gen config file to the number of replications.* Example scriptsChanged scripts to work with replications instead of batches.Logging of statistics.Changed tests.Added deployment_search.jl.Added transient.jl, for determining warm-up and cool-down duration.Replaced deployment_ranking.jl with deployment_test.jl.* Bug fixesFunction `statsDictFromPeriodStatsList`, some call duration statistics (handover, queued, bumped, transport) had the wrong divisor.Function `statsDictFromPeriodStatsList` assertion needed changing.Function `setAmbStation!` was not working.* MiscAdded tests.Write stats dict to file.For gen config, added parameter 'minLastCallArrivalTime'.Changed function `runGenConfigCalls` to return call sets, and made writing to file optional.For `getRepsPeriodStatsList` function, check that periods have same duration.Added function `setSimCalls!`.Added function `setMoveUpModule!`.Re-added `findNearestNode` function (removed in last branch merged with master), as some scripts I use depend on it.Read and write priority lists files.Other minor changes.
1 parented9db48 commitd4a002b

File tree

40 files changed

+2788
-829
lines changed

40 files changed

+2788
-829
lines changed

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33
*.jl.mem
44
/example/output
55
/example/input
6+
/example/scripts/output
67
/test/data/regions/small/*/generated
8+
/test/data/regions/small/*/output

‎example/example.jl‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ runGenConfig(genConfigFilename; overwriteOutputPath = true)
2525
# create and run simulation using generated files
2626
println("\n=== Simulating with generated files ===")
2727
simConfigFilename=joinpath(path,"sim_config.xml")
28-
sim=initSim(simConfigFilename, doPrint=false)
28+
sim=initSim(simConfigFilename)
2929
simulate!(sim)
3030

3131
# print some basic statistics
@@ -41,15 +41,15 @@ simulate!(sim)
4141
# create and run simulation again, this time writing output files
4242
println("\n=== Simulating with generated files, writing output ===")
4343
simConfigFilename=joinpath(path,"sim_config.xml")
44-
sim=initSim(simConfigFilename; allowWriteOutput=true, doPrint=false)
44+
sim=initSim(simConfigFilename; allowWriteOutput=true)
4545
openOutputFiles!(sim)
4646
simulate!(sim)
4747
writeOutputFiles(sim)
4848
closeOutputFiles!(sim)
4949

5050
# create and run simulation again, resimulating based on previously created events output file
5151
println("\n=== Resimulating based on output/events file ===")
52-
sim=initSim(simConfigFilename; allowResim=true, doPrint=false)
52+
sim=initSim(simConfigFilename; allowResim=true)
5353
simulate!(sim)
5454

5555
nothing# return value

‎example/scripts/deployment_local_search.jl‎

Lines changed: 208 additions & 133 deletions
Large diffs are not rendered by default.

‎example/scripts/deployment_ranking.jl‎

Lines changed: 0 additions & 106 deletions
This file was deleted.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp