CagataySonmez / EdgeCloudSim

EdgeCloudSim: An Environment for Performance Evaluation of Edge Computing Systems
GNU General Public License v3.0
420 stars 228 forks source link

No output/date/ite_n.tgz files #9

Open sjmjulia opened 6 years ago

sjmjulia commented 6 years ago

I have two questions:

  1. At the end of the iteration, I did not see any output/date/ite_n.tgz files, but there are many log files in sim_results/iter1...
  2. how could I use scripts under scripts/sample_application/matlab folder to plot graphics.
JohnsonClayton commented 6 years ago
  1. I think it mainly depends on where you execute. If we run mainApp, we get the sim_results files. When we run the scripts in the scripts folder, we have the output/date files show up.
  2. As far as I know, when you run the matlab files, they will take the data files produced and make the graphs. You may have to change the paths to the data files but it should be pretty straight-forward from there.
CagataySonmez commented 6 years ago

I think you ran simulations without the command line arguments (e.g. directly on Eclipse). In this case, the results are saved under the default location defined in mainApp.java. In mainApp.java file, it is defined as sim_results/iten (n is the iteration number). If you run simulations via scripts/sample_application/run_scenario.sh script, the results will be saved as ite_n.tgz under EdgeCloudSim/scripts/sample_application/output// folder.

When it comes to the matlab usage; first of all, you should adjust the getConfiguration.m file according to your simulation settings, e.g. the output folder path, the number of iteration and scenario names. Please do not invoke plotGenericResult function, it is an helper function so that we don't directly invoke it. plotGenericResult function is invoked with proper arguments in other matlab files; you can see an example usage in the plotAvgFailedTask.m file.

Does it solve your problem?

susanwab commented 5 years ago

@CagataySonmez , So how do you get the number of iterations and scenario names?

susanwab commented 5 years ago

@CagataySonmez , when I run your code, I get this error in Matlab

getConfiguration(argType) Undefined function or variable 'argType'.