[EdgeCloudSim] - How to generate EdgeCloudSim MATLAB graphs
Updated:
๐ฉ๐ปโ๐ป A Final Year Project on Edge Computing that simulates and evaluates different edge architectures
๐โ๐จ How to invoke MATLAB graphs for EdgeCloudSim
There isnโt a lot of documentation about EdgeCloudSim, more so of how to actually generate these beautiful MATLAB graphs. In this post Iโll go through a step by step of how to do so.
(A)ย ย 100 Mbps | (B)ย ย 300 Mbps | (C)ย ย 500 Mbps |
---|---|---|
1. Run the simulation
Please refer to my previous postโs Installation section to see how to run the simulation.
- The output will be saved at
sample_app1/output/
- The simulator outputs the results of n iterations, where the โite.logโ files are provided as a human-readable log of the simulation results, and files in folder iteโnโ to be fed to MATLAB for plot generation
2. Edit getConfiguration.m
file to define your output log folder path
The file resides on sample_app1/matlab/getConfiguration.m
. Make sure you define the path with ite output logs like below.
Filepath
ret_val = '/Users/chaerim/EdgeCloudSim-master/scripts/sample_app1/output/02-04-2020_21-16/default_config';
Change this line depending on your configuration.
2-2. For Mac/Linux user: edit โplotGenericResults.mโ โs filepath line from โ' to โ/โ(line 24)
Below code will parse the path for individual files and feed it to the functions. You might need to fiddle with these two files a little - the problematic part that took me a while to figure out.๐คฃ
filePath = strcat(folderPath,'/ite',int2str(s),'/SIMRESULT_',char(scenarioType(i)),'_NEXT_FIT_',int2str(mobileDeviceNumber),'DEVICES_',appType,'_GENERIC.log');
3. Invoke plot__.m files as you need (NOT the plotGenericResults file)
4. Voila! Repeat the above for different simulation output folders.
Hope this helped. Let me know if you need any further clarification.
Leave a comment