liveBook · Manning

Position vector

As explained in Optimization Algorithms: AI techniques for design, planning, and control problems

A permutation encoding the candidate solution represented by a particle in permutation-based particle swarm optimization.

A position vector encodes a particle’s candidate solution as a permutation. In permutation-based particle swarm optimization, it can represent an ordering such as the sequence of cities in a traveling salesman problem. section 9.4

An eight-city route

The permutation [2, 4, 6, 1, 5, 3, 8, 7] represents one candidate route through eight cities. A particle’s velocity is a sequence of swaps, and applying those swaps to the position vector produces a new candidate solution. section 9.4

Permutation-based PSO redefines the usual vector operations:

  • Multiplication changes a velocity’s number of swaps: zero removes them, values below one truncate them, and values above one augment them. section 9.4
  • Subtraction compares two position vectors and returns swaps that can transform one permutation into the other. section 9.4
  • Addition applies a velocity’s swaps to a position vector, generating a new permutation and candidate solution. section 9.4
Figure 9.9 Redefined subtraction operation for permutation-based PSO

Trace how subtracting two permutations produces the swap sequence used as a discrete velocity. section 9.4

Figure 9.10 Redefined addition operation for permutation-based PSO

Follow how applying a swap velocity to a position vector generates the next candidate permutation. section 9.4

How Optimization Algorithms: AI techniques for design, planning, and control problems covers it

How deep it goes
Explains permutation representation and redefines multiplication, subtraction, and addition through swap-based operations.
Examples
Uses an eight-city TSP permutation and figures showing velocity multiplication, subtraction, and addition.
What you can do after
Apply permutation-based PSO updates by representing routes as permutations and manipulating swap sequences.
How it connects
Connects particle swarm optimization with velocity vectors, candidate solutions, and the traveling salesman problem.

Also explained in

Compare how 3 books explain position vector →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Optimization Algorithms: AI techniques for design, planning, and control problems. The section links point to the parts of the book it draws on.