📄 readme
字号:
Note: * "cr or PCR" was the internal name for S4 before the paper gotpublished. Don't be confused. :) * The current implementation was tested on Matlab 6 student version inLinux, a rather old version of Matlab. * It will take a long time to get the simulation done. The followingoptimization is used to speed up: (1) C implementation for thedijkstra algorithm and BVR algorithm. Use make to compile it. (2) usecondor to run simulation instances in parallel. This is specificallydesigned for UT Austin condor environment. Feel free to change thescripts accordingly to fit your requirement, or run sequentially ifyou have a really powerful machine and a good computer game to keepyou busy.How to run the simulations:1. varying number of beacons:make sure high_density dir is there and empty, then in MATLABsim_parallel('high_density')this will schedule a bunch of jobs in condor, use condor_q to checkthe status of the jobs, and wait until they finish.sim_parallel('high_density', 0) if you don't have condor and decide torun it sequentially. It will take a looooooooooooong time to finish.when the results are ready, runsim_parallel('high_density', -1) to plot figures.2. Directory setup traffic related (somehow badly named as DHT):do not call sim_dht directlysim_parallel('high_dht') sim_parallel('high_dht', -1)3. varying network densitysim_parallel('low_density')sim_parallel('low_density', -1) % to generate the all-in-one .mat filesim_density will be called automatically4. vary the size of the networkNote: sim_size is deprecatedsim_sizep('size')sim_sizep('size', -1)5. obstaclessim_obstacle is the sequential versionsim_obstaclep('obstacle')sim_obstaclep('obstacle',-1) is the parallel version6. failuresim_failure('low_rate')sim_failure('low_rate', -1)sim_failure('beacon_failure')sim_failure('beacon_failure', -1)7. incremental distance vectorsim_dv('high_dv')sim_dv('high_dv', -1)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -