plot_NparOF {hydroPSO} | R Documentation |

For `n` user-defined parameters, the function creates `sum(1:(npar-1))` `plot_2parOF`

plots, with the values of the objective function in a 2D box, where the boundaries of each parameter are used as axis

The `sum(1:(npar-1))` plots corresponds to all the possible combinations of 2 parameters among all the `n` parameters provided

plot_NparOF(params, gofs, param.names=colnames(params), MinMax=c(NULL,"min","max"), beh.thr=NA, nrows="auto", gof.name="GoF", main=paste(gof.name, "Surface"), GOFcuts="auto", colorRamp= colorRampPalette(c("darkred", "red", "orange", "yellow", "green", "darkgreen", "cyan")), points.cex=0.7, alpha=0.65, axis.rot=c(0, 0), verbose=TRUE)

`params` |
matrix or data.frame with the parameter values |

`gofs` |
numeric with the values of goodness-of-fit values for each one of the parameters in |

`param.names` |
character, names for the parameters in |

`MinMax` |
character, indicates whether the optimum value in |

`beh.thr` |
OPTIONAL |

`nrows` |
numeric, number of rows to be used in the plotting window |

`gof.name` |
character, name of the objective function to be plotted. It has to correspond to the name of one column of |

`main` |
character, currently not used |

`GOFcuts` |
numeric, specifies at which values of the objective function given in |

`colorRamp` |
R function defining the colour ramp to be used for colouring the pseudo-3D dotty plots of Parameter Values, OR character representing those colours |

`points.cex` |
size of the points to be plotted |

`alpha` |
numeric between 0 and 1 representing the transparency level to apply to |

`axis.rot` |
numeric vector of length 2 representing the angle (in degrees) by which the axis labels are to be rotated, left/bottom and right/top, respectively. |

`verbose` |
logical; if TRUE, progress messages are printed |

Mauricio Zambrano-Bigiarini, mzb.devel@gmail.com

`plot_2parOF`

, `read_results`

, `plot_results`

, `plot_GofPerParticle`

, `plot_params`

, `plot_ParamsPerIter`

# Number of dimensions to be optimised D <- 5 # Boundaries of the search space (Rosenbrock test function) lower <- rep(-30, D) upper <- rep(30, D) ## Not run: # Setting the user's home directory as working directory setwd("~") # Setting the seed set.seed(100) # Optimising the 'Rosenbrock' test function, and writing the results to text files hydroPSO(fn=rosenbrock, lower=lower, upper=upper, control=list(write2disk=TRUE) ) # reading the 'Particles.txt' output file of hydroPSO setwd("PSO.out") particles <- read_particles(plot=FALSE) # plotting the value of each parameter and the objective function against the # values of the objective function plot_NparOF(params=particles[["part.params"]], gofs=particles[["part.gofs"]], gof.name="Rosenbrock", alpha=0.5) ## End(Not run)

[Package *hydroPSO* version 0.3-4-6 Index]