-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlotInPNGFile.R
35 lines (26 loc) · 1.11 KB
/
PlotInPNGFile.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#############################################################
# ExecuteJMetal ::R functions::
#
# Author: Lucas Prestes [email protected]
#
#############################################################
# SCRIPT START HERE
#
# These are examples of how to call the methods
#
# ATTENTION! The function "linePlotEvolution" only can by plotter with the data files,
# see the algorithm in java /ExecuteJMetal/src/org.uma.jmetal.util.experiment.component/GenerateEvolutionChart.java
#
#############################################################
#the file must be executed in same directory of main.R
source("main.R") #load these functions
par(mfrow=c(1, 3)) #set number of plot/page #c(lines, columns)
algorithms <- c("MOEADDRA","NSGAII","IBEA")
instances3obj <- c("DTLZ1","DTLZ2","DTLZ3","DTLZ4","DTLZ7")
for(instance in instances3obj){
png(paste("./PlotInPNGFile/PlotInPNGFile_",instance,".png",sep=""), height=800, width=1650, pointsize=11, res=230)
par(mfrow=c(1, 3))
linePlotEvolution(instance,"HV",algorithms)
JMetalBoxplot(algorithms, "HV", instance)
objectivePoints3D(instance, algorithms)
}