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

Similar documents
Package deductive. June 2, 2017

Package ECctmc. May 1, 2018

Package quadprogxt. February 4, 2018

Package localsolver. February 20, 2015

Package lpsymphony. February 6, 2018

Package pomdp. January 3, 2019

Package hyphenatr. August 29, 2016

Package svd. R topics documented: September 26, 2017

Package projector. February 27, 2018

Package arulescba. April 24, 2018

Package fastdummies. January 8, 2018

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

Package datasets.load

Package profvis. R topics documented:

Package ompr. November 18, 2017

Package geogrid. August 19, 2018

Package ECOSolveR. February 18, 2018

Package clipr. June 23, 2018

Package dotcall64. January 11, 2018

A LOWER BOUND FOR THE QAP BASED ON GRAPH THEORY AND LINEAR PROGRAMMING

Package flsa. February 19, 2015

Package arulesnbminer

Package nngeo. September 29, 2018

Package Rcplex. June 12, 2016

Package diffusr. May 17, 2018

Package wrswor. R topics documented: February 2, Type Package

Package raker. October 10, 2017

Package RYoudaoTranslate

Package messaging. May 27, 2018

Package reval. May 26, 2015

Package subplex. April 5, 2018

Package combiter. December 4, 2017

Package stapler. November 27, 2017

Package SimilaR. June 21, 2018

Package Rtsne. April 14, 2017

Package canvasxpress

Package pwrab. R topics documented: June 6, Type Package Title Power Analysis for AB Testing Version 0.1.0

Package cattonum. R topics documented: May 2, Type Package Version Title Encode Categorical Features

Package dbx. July 5, 2018

Package clustering.sc.dp

Package rprojroot. January 3, Title Finding Files in Project Subdirectories Version 1.3-2

Package knitrprogressbar

Package readobj. November 2, 2017

Package eply. April 6, 2018

Package readxl. April 18, 2017

Package shinyhelper. June 21, 2018

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

Package nscancor. February 15, 2018

Package lxb. R topics documented: August 29, 2016

Package githubinstall

Package spark. July 21, 2017

Package strat. November 23, 2016

Tabu Search vs. Simulated Annealing for Solving Large Quadratic Assignment Instances

Package Rglpk. May 18, 2017

Package Rcplex. February 15, 2013

Package waver. January 29, 2018

Package mixsqp. November 14, 2018

Package crochet. January 8, 2018

Package benchmarkme. R topics documented: February 26, Type Package Title Crowd Sourced System Benchmarks Version 0.2.

Package validara. October 19, 2017

Package arulesviz. April 24, 2018

Package TSP. February 15, 2013

Package vinereg. August 10, 2018

Package lhs. R topics documented: January 4, 2018

Package RCA. R topics documented: February 29, 2016

A New Heuristic for the Quadratic Assignment Problem

Package TSP. February 22, 2016

Package OLScurve. August 29, 2016

Package vdiffr. April 27, 2018

Package ecoseries. R topics documented: September 27, 2017

Package mdftracks. February 6, 2017

Package bigreadr. R topics documented: August 13, Version Date Title Read Large Text Files

Package RTriangle. January 31, 2018

Package lumberjack. R topics documented: July 20, 2018

Package reportr. October 6, 2016

Package metaheur. June 30, 2016

Package mgc. April 13, 2018

Package timechange. April 26, 2018

Package rngtools. May 15, 2018

Estimation of Distribution Algorithm with 2-opt Local Search for the Quadratic Assignment Problem

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

Package RODBCext. July 31, 2017

Package opencage. January 16, 2018

Package embed. November 19, 2018

Package fastrtext. December 10, 2017

Parameter Optimization for Evolutionary Algorithm Quadratic Assignment Problem

Modeling Separations of Plant Layout Problems

Package getopt. February 16, 2018

Package readmzxmldata

Package ConvergenceClubs

Package rxylib. December 20, 2017

Package sfc. August 29, 2016

Package pkgbuild. October 16, 2018

Package aws.transcribe

Package hsiccca. February 20, 2015

Package semver. January 6, 2017

Package simsurv. May 18, 2018

Package rnn. R topics documented: June 21, Title Recurrent Neural Network Version 0.8.1

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

On the Phase Coupling Problem between Data Memory Layout Generation and Address Pointer Assignment

Transcription:

Package qap February 27, 2017 Title Heuristics for the Quadratic Assignment Problem (QAP) Version 0.1-1 Date 2017-02-26 Description Implements heuristics for the Quadratic Assignment Problem (QAP). Currently only a simulated annealing heuristic is available. Suggests testthat BugReports https://github.com/mhahsler/qap/issues License GPL-3 NeedsCompilation yes Author Michael Hahsler [aut, cre, cph], Franz Rendl [ctb, cph] Maintainer Michael Hahsler <mhahsler@lyle.smu.edu> Repository CRAN Date/Publication 2017-02-27 08:15:39 R topics documented: qap.............................................. 1 read_qaplib......................................... 3 Index 5 qap Solve Quadratic Assignment Problems (QAP) Description This function implements Quadratic Assignment Problems (QAP) heuristics. Currently there is only a simulated annealing heuristic available, but more will be added in the future. 1

2 qap Usage qap(a, B, method = NULL,...) qap.obj(a, B, o) Arguments A B method a symmetric matrix with positive weights/flows between pairs facilities. a symmetric matrix with positive distances between pairs of locations. a character string indicating the used solver. Defaults to "SA", the currently only available method.... further arguments are passed on to the solver (see details). o a permutation vector for the assignment of facilities to locations. Details The objective of the QAP is to find the best facility to location assignment. The assignment is represented by a permutation matrix X and the objective is min X Π tr(axbx T ) qap.obj calculates the objective function for A and B with the permutation o. The QAP is known to be NP-hard. This function implements the simple simulated annealing heuristic described by Burkard and Rendl (1984). The code is based on Rendl s FORTRAN implementation of the algorithm available at the QAPLIB Web site. The solver has the additional arguments rep = 1L, miter = 2 * nrow(a), fiter = 1.1, ft = 0.5 and maxsteps = 50L rep integer; number of restarts. miter integer; number of iterations at fixed temperature. fiter multiplication factor for miter after miter random transposition trials. ft multiplication factor for t after miter random transposition trials (between 0 and 1). maxsteps integer; maximal number of allowed cooling steps. Value Returns an integer vector with facility to location assignments. The objective function value is provided as attribute "obj". Author(s) Michael Hahsler References R.E. Burkard and F. Rendl. A thermodynamically motivated simulation procedure for combinatorial optimization problems. European Journal of Operations Research, 17(2):169-174, 1984. R.E. Burkard, E. Cela, S.E. Karisch and F. Rendl, QAPLIB - A Quadratic Assignment Problem Library, http://anjos.mgi.polymtl.ca/qaplib/

read_qaplib 3 Examples ## load the had12 QAPLIB problem p <- read_qaplib(system.file("qaplib", "had12.dat", package="qap")) p ## run 1 repetitions verbose a <- qap(p$a, p$b, verbose = TRUE) a ## compare with known optimum (gap, % above optimum) (attr(a, "obj") - p$opt)/p$opt * 100 ## run more repetitions quietly a <- qap(p$a, p$b, rep = 100) a ## compare with known optimum (gap, % above optimum) (attr(a, "obj") - p$opt)/p$opt * 100 read_qaplib Read QAPLIB Files Description Reads example file in the format used by QAPLIB. Usage read_qaplib(file) Arguments file file name. Details Problems end with the extension.dat and solutions with.sln. The code tries to read the problem and, if available in the same directory, it also reads the solution and the known optimal value from the solution file. The package contains a copy of the problem instances and solutions from QAPLIB. The data is stored in the package in directory qaplib.

4 read_qaplib Value Returns a list with the components D W solution opt distance matrix. weight matrix. a known optimal solution (if available). known optimal value (if available). Author(s) Michael Hahsler References R.E. Burkard, E. Cela, S.E. Karisch and F. Rendl, QAPLIB - A Quadratic Assignment Problem Library, http://anjos.mgi.polymtl.ca/qaplib/ Examples ## load a QAPLIB problem instance p <- read_qaplib(system.file("qaplib", "had12.dat", package="qap")) p ## list all QAPLIB instances dir(system.file("qaplib", package="qap"), pattern = "*.dat")

Index Topic manip read_qaplib, 3 Topic optim qap, 1 qap, 1 read_qaplib, 3 5