liveBook · Manning

Position vector

A position vector is a vector from an origin to a point, representing that point’s location through its components.

How 3 Manning books explain it

Grokking AI Algorithms, Second Edition

A position is the point or vector in a search space that represents a particle's candidate solution in particle swarm optimization.

How it is used
Represents each PSO particle’s candidate solution so its fitness can be evaluated as the particle moves through the search space.
How deep it goes
Defines position as coordinates in all dimensions and traces initialization and updates through a two-coordinate example, without a general vector derivation.
Examples
Uses two-coordinate Python particles, randomly generated starting positions, and a numerical move from (-1, 9) to (0.52, 10.52).
What you can do after
Build it from scratch as current and best coordinates in a Python Particle class, then update and evaluate the current position.

Read how Grokking AI Algorithms, Second Edition explains position vector →

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.

How it is used
Represents each particle’s candidate solution when PSO searches permutation problems such as route orderings.
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.

Read how Optimization Algorithms: AI techniques for design, planning, and control problems explains position vector →

Geometry for Programmers

A point vector is a vector conventionally interpreted as representing a point by its components from the origin.

How it is used
Connects coordinate descriptions of points with vector arithmetic for geometric transformations.
How deep it goes
Defines the origin convention, coordinate forms, basis decomposition, translation, and scaling, but does not develop vector products.
Examples
Uses (0.5, 1.5), its 3D extension, basis form 0.5i + 1.5j, and point-vector models undergoing translation or scaling.
What you can do after
Evaluate when a vector can conventionally represent a point and apply vector addition or scalar multiplication to point-vector models.

Read how Geometry for Programmers explains position vector →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.