qatsp: Quantum annealing for traveling salesman problem

Description Usage Arguments Examples

Description

The Traveling Salesman Problem (TSP) is a combination of a set of cities and a distance between each two cities to find the one with the smallest total distance traveled by a tour traveling around all cities just once and returning to the departure place It is an optimization problem. This problem belongs to the class of NP difficulties in computational complexity theory.

Quantum annealing is a metaheuristic for finding the global minimum of a given objective function over a given set of candidate solutions, by a process using quantum fluctuations.

The qatsp package simulates quantum annealing in the R language and can approximate the traveling salesman problem. Quantum Monte Carlo method is used for simulation of quantum annealing.

Usage

1
qatsp(x, y, beta  = 50, trotter = 10, ann_para = 1, ann_step = 500, mc_step = 5000, reduc = 0.99, trace = TRUE, route = FALSE)

Arguments

x, y

The x, y coordinates of the city the salesman visits.

beta

Inverse Temperature.

trotter

Trotta dimension. Trotter dimension is added by mapping from quantum model to classic model.

ann_para

Initial value of annealing parameter.

ann_step

Annealing step.

mc_step

Monte Carlo step.

reduc

An attenuation factor of the annealing parameter

Examples

1
2
3
4
set.seed(108)
result <- qatsp(x = Akita[,1], y= Akita[,2])
route(result)
plot(result)

ToshihiroIguchi/qatsp documentation built on May 8, 2019, 3:42 p.m.