-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
134 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
experiment/MyExperiments/comparison/examples/PlotInPNGFile.R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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) | ||
} |
Binary file added
BIN
+146 KB
experiment/MyExperiments/comparison/examples/PlotInPNGFile/PlotInPNGFile_DTLZ1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+139 KB
experiment/MyExperiments/comparison/examples/PlotInPNGFile/PlotInPNGFile_DTLZ2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+146 KB
experiment/MyExperiments/comparison/examples/PlotInPNGFile/PlotInPNGFile_DTLZ3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+135 KB
experiment/MyExperiments/comparison/examples/PlotInPNGFile/PlotInPNGFile_DTLZ4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+153 KB
experiment/MyExperiments/comparison/examples/PlotInPNGFile/PlotInPNGFile_DTLZ7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
# Author: Lucas Prestes [email protected] | ||
# | ||
############################################################# | ||
|
||
#the file must be executed in same directory of main.R | ||
|
||
source("main.R") | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters