Package GenSA. R topics documented: January 17, Type Package Title Generalized Simulated Annealing Version 1.1.

Similar documents
Package optimization

Package dfoptim. April 2, 2018

Package pso. R topics documented: February 20, Version Date Title Particle Swarm Optimization

Package subplex. April 5, 2018

Package robustreg. R topics documented: April 27, Version Date Title Robust Regression Functions

Package zoomgrid. January 3, 2019

Package nearfar. June 3, 2017

Package kirby21.base

Package quadprogxt. February 4, 2018

Package inca. February 13, 2018

Package RCA. R topics documented: February 29, 2016

Package palmtree. January 16, 2018

Package cgh. R topics documented: February 19, 2015

Package qap. February 27, Index 5. Solve Quadratic Assignment Problems (QAP)

Package crochet. January 8, 2018

Package DEoptimR. November 19, 2016

Package Rtsne. April 14, 2017

Package Rcsdp. April 25, 2016

Package sfc. August 29, 2016

Package coxsei. February 24, 2015

Package RAMP. May 25, 2017

Package datasets.load

Package gee. June 29, 2015

Package stapler. November 27, 2017

Package optimsimplex

Package ECOSolveR. February 18, 2018

Package calibrar. August 29, 2016

Package CatEncoders. March 8, 2017

Package sglr. February 20, 2015

Package spark. July 21, 2017

Package DPBBM. September 29, 2016

Package StVAR. February 11, 2017

Package libstabler. June 1, 2017

Package MeanShift. R topics documented: August 29, 2016

Package longclust. March 18, 2018

Package glinternet. June 15, 2018

Package Combine. R topics documented: September 4, Type Package Title Game-Theoretic Probability Combination Version 1.

Package simsurv. May 18, 2018

Package hsiccca. February 20, 2015

Package SSLASSO. August 28, 2018

Package RSpectra. May 23, 2018

Package hiernet. March 18, 2018

Package assortnet. January 18, 2016

Package stockr. June 14, 2018

Package rcma. April 30, 2015

Package tseriesentropy

Package ECctmc. May 1, 2018

Package nsprcomp. August 29, 2016

Package estprod. May 2, 2018

Package raker. October 10, 2017

Package future.apply

Package desirability

Package LVGP. November 14, 2018

Package parfossil. February 20, 2015

Package deductive. June 2, 2017

Package Rvmmin. R topics documented: July 19, 2017

Package sankey. R topics documented: October 22, 2017

Package mvpot. R topics documented: April 9, Type Package

Package fastdummies. January 8, 2018

Package imgur. R topics documented: December 20, Type Package. Title Share plots using the imgur.com image hosting service. Version 0.1.

Package missforest. February 15, 2013

Package Bergm. R topics documented: September 25, Type Package

Package IntNMF. R topics documented: July 19, 2018

Package rngsetseed. February 20, 2015

Package marqlevalg. February 20, 2015

Package dkdna. June 1, Description Compute diffusion kernels on DNA polymorphisms, including SNP and bi-allelic genotypes.

Package jdx. R topics documented: January 9, Type Package Title 'Java' Data Exchange for 'R' and 'rjava'

Package WhiteStripe. April 19, 2018

Package svd. R topics documented: September 26, 2017

Package DEoptim. R topics documented: December 19, 2016

Package sbf. R topics documented: February 20, Type Package Title Smooth Backfitting Version Date Author A. Arcagni, L.

Package manet. August 23, 2018

Package Cubist. December 2, 2017

Package Numero. November 24, 2018

Package geojsonsf. R topics documented: January 11, Type Package Title GeoJSON to Simple Feature Converter Version 1.3.

Package bisect. April 16, 2018

Package gppm. July 5, 2018

Package mmpa. March 22, 2017

Package fasttextr. May 12, 2017

Package crossword.r. January 19, 2018

Package corclass. R topics documented: January 20, 2016

Package flsa. February 19, 2015

Package recosystem. September 2, 2017

Package SoftClustering

Package lhs. R topics documented: January 4, 2018

Package manet. September 19, 2017

Package ebdbnet. February 15, 2013

Package comphclust. May 4, 2017

Package doredis. R topics documented: February 19, Type Package

Package NNLM. June 18, 2018

Package alphashape3d

Package mmtsne. July 28, 2017

Package nonlinearicp

Package intcensroc. May 2, 2018

Package exporkit. R topics documented: May 5, Type Package Title Expokit in R Version Date

Package madsim. December 7, 2016

Package svd. R topics documented: March 24, Type Package. Title Interfaces to various state-of-art SVD and eigensolvers. Version 0.3.

Package spatialtaildep

Package dotcall64. January 11, 2018

Package mrm. December 27, 2016

Transcription:

Type Package Title Generalized Simulated Annealing Version 1.1.7 Date 2018-01-15 Package GenSA January 17, 2018 Author Sylvain Gubian, Yang Xiang, Brian Suomela, Julia Hoeng, PMP SA. Maintainer Sylvain Gubian <DL.RSupport@pmi.com> Depends R (>= 2.12.0) Description Performs search for global minimum of a very complex non-linear objective function with a very large number of optima. License GPL-2 LazyLoad yes NeedsCompilation yes Repository CRAN RoxygenNote 5.0.1 Date/Publication 2018-01-17 15:02:35 UTC R topics documented: GenSA-package....................................... 1 GenSA............................................ 2 Index 6 GenSA-package Package for Generalized Simulated Annealing Description Details Implementation of a function that searches for global minimum of a very complex non-linear objective function with a very large number of optima. 1

2 GenSA Package: GenSA Type: Package Version: 1.1.6 Date: 2016-02-09 License: GPL-2 LazyLoad: yes Author(s) Yang Xiang, Sylvain Gubian, Brian Suomela, Julia Hoeng, PMP SA. Maintainer: DL.RSupport@pmi.com References Xiang Y, Gubian S, Suomela B, Hoeng (2012). "Generalized Simulated Annealing for Efficient Global Optimization: the GenSA Package for R". The R Journal, Forthcoming. https://journal. r-project.org/archive/2013/rj-2013-002/index.html. Tsallis C (1988). "Possible generalization of Boltzmann-Gibbs statistics." Journal of Statistical Physics, 52, 479 487. Tsallis C, Stariolo DA (1996). "Generalized Simulated Annealing." Physica A, 233, 395 406. Xiang Y, Sun DY, Fan W, Gong XG (1997). "Generalized Simulated Annealing Algorithm and Its Application to the Thomson Model." Physics Letters A, 233, 216 220. Xiang Y, Gong XG (2000a). "Efficiency of Generalized Simulated Annealing." PHYSICAL RE- VIEW E, 62, 4473. Xiang Y, Sun DY, Gong XG (2000). "Generalized Simulated Annealing Studies on Structures and Properties of Nin (n=2-55) Clusters." Journal of Physical Chemistry A, 104, 2746 2751. GenSA Generalized Simulated Annealing Function Description This function searches for global minimum of a very complex non-linear objective function with a very large number of optima. Usage GenSA(par, fn, lower, upper, control=list(),...)

GenSA 3 Arguments par fn lower upper Vector. Initial values for the components to be optimized. Default is NULL, in which case, default values will be generated automatically. A function to be minimized, with first argument the vector of parameters over which minimization is to take place. It should return a scalar result. Vector with length of par. Lower bounds for components. Vector with length of par. Upper bounds for components.... allows the user to pass additional arguments to the function fn. control The argument is a list that can be used to control the behavior of the algorithm: maxit Integer. Maximum number of iterations of the algorithm. threshold.stop Numeric. The program will stop when the expected objective function value threshold.stop is reached. Default value is NULL nb.stop.improvement Integer. The program will stop when there is no any improvement in nb.stop.improvement steps. smooth Logical.TRUE when the objective function is smooth, or differentiable almost everywhere in the region of par, FALSE otherwise. Default value is TRUE. max.call Integer. Maximum number of call of the objective function. Default is set to 1e7. max.time Numeric. Maximum running time in seconds. temperature Numeric. Initial value for temperature. visiting.param Numeric. Parameter for visiting distribution. acceptance.param Numeric. Parameter for acceptance distribution. verbose Logical. TRUE means that messages from the algorithm are shown. Default is FALSE. simple.function Logical. FALSE means that the objective function has only a few local minima. Default is FALSE which means that the objective function is complicated with many local minima. trace.mat Logical. Default is TRUE which means that the trace matrix will be available in the returned value of GenSA call. seed Integer. Negative integer value that can be set to initialize the internal random generator. Details The default values of the control components are set for a complex optimization problem. For usual optimization problem with medium complexity, GenSA can find a reasonable solution quickly so the user is recommended to let GenSA stop earlier by setting threshold.stop if threshold.stop is the expected function value, or by setting max.time if the user just want to run GenSA for max.time seconds, or by setting max.call if the user just want to run GenSA within max.call function calls. Please refer to the examples below. For very complex optimization problems, the user is recommended to increase maxit and temp.

4 GenSA Value The returned value is a list with the following fields: value: Numeric. The value of fn corresponding to par. par: Vector. The best set of parameters found. trace.mat: A matrix which contains the history of the algorithm. (By columns: Step number, temperature, current objective function value, current minimal objective function value). counts: Integer. Total number of calls of the objective function. Author(s) Yang Xiang, Sylvain Gubian, Brian Suomela, Julia Hoeng, PMP SA. References Xiang Y, Gubian S, Suomela B, Hoeng (2012). "Generalized Simulated Annealing for Efficient Global Optimization: the GenSA Package for R". The R Journal, Forthcoming. https://journal. r-project.org/archive/2013/rj-2013-002/index.html. Tsallis C (1988). "Possible generalization of Boltzmann-Gibbs statistics." Journal of Statistical Physics, 52, 479 487. Tsallis C, Stariolo DA (1996). "Generalized Simulated Annealing." Physica A, 233, 395 406. Xiang Y, Sun DY, Fan W, Gong XG (1997). "Generalized Simulated Annealing Algorithm and Its Application to the Thomson Model." Physics Letters A, 233, 216 220. Xiang Y, Gong XG (2000a). "Efficiency of Generalized Simulated Annealing." PHYSICAL RE- VIEW E, 62, 4473. Xiang Y, Sun DY, Gong XG (2000). "Generalized Simulated Annealing Studies on Structures and Properties of Nin (n=2-55) Clusters." Journal of Physical Chemistry A, 104, 2746 2751. See Also optim Examples library(gensa) # Try Rastrgin function (The objective function value for global minimum # is 0 with all components of par are 0.) Rastrigin <- function(x) { sum(x^2-10 * cos(2 * pi * x)) + 10 * length(x) } # Perform the search on a 30 dimensions rastrigin function. Rastrigin # function with dimension 30 is known as the most # difficult optimization problem according to "Yao X, Liu Y, Lin G (1999). # \Evolutionary Programming Made Faster." # IEEE Transactions on Evolutionary Computation, 3(2), 82-102. # GenSA will stop after finding the targeted function value 0 with # absolute tolerance 1e-13

GenSA 5 set.seed(1234) # The user can use any seed. dimension <- 30 global.min <- 0 tol <- 1e-13 lower <- rep(-5.12, dimension) upper <- rep(5.12, dimension) out <- GenSA(lower = lower, upper = upper, fn = Rastrigin, control=list(threshold.stop=global.min+tol,verbose=true)) out[c("value","par","counts")] # GenSA will stop after running for about 2 seconds # Note: The time for solving this problem by GenSA may vary # depending on the computer used. set.seed(1234) # The user can use any seed. dimension <- 30 global.min <- 0 tol <- 1e-13 lower <- rep(-5.12, dimension) upper <- rep(5.12, dimension) out <- GenSA(lower = lower, upper = upper, fn = Rastrigin, control=list(max.time=2)) out[c("value","par","counts")]

Index Topic package, Generalized Simulated Annealing, optimization GenSA, 2 GenSA, 2 GenSA-package, 1 6