Method: PAES_Analysis#plotSingleRun_ParetoSchedules_Relative

Defined in:
lib/flukso/plots.rb

#plotSingleRun_ParetoSchedules_RelativeObject



340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
# File 'lib/flukso/plots.rb', line 340

def plotSingleRun_ParetoSchedules_Relative
  basename="relative-results"
  max_qt_annotation = @annotations.getMaxQT()
  max_price_annotation = @annotations.getMaxPrice()
  min_qt_annotation = @annotations.getMinQT()
  min_price_annotation = @annotations.getMinPrice()
  puts "### Calculated: #{max_qt_annotation}, #{max_price_annotation}"
  #main="Pareto Front (relative values)",
  drawcmd="    max_qt<-max(data$QT, \#{max_qt_annotation});\n    max_price<-max(data$Price, \#{max_price_annotation});\n    min_qt<-min(data$QT, \#{min_qt_annotation});\n    min_price<-min(data$Price, \#{min_price_annotation});\n    qt_range<-c(min_qt,max_qt);\n    price_range<-c(min_price,max_price);\n    plot(qt_range, price_range, type=\"n\",\n      xlab=\"queue time (s)\",\n      ylab=\"price / second\"\n    )\n    points(data$QT, data$Price, type=\"b\")\n  END_OF_CMD\n  drawcmd=appendAnnotations(drawcmd)\n  infile=File.join(@workingdir, basename+\".txt\")\n  outfile=basename+\".eps\"\n  puts \"infile: \#{infile}\"\n  puts \"outfile: \#{outfile}\"\n  @runner.execute(infile, outfile, drawcmd)\nend\n"