Optimization Algorithms

Metaheuristic Optimization
Type Global optimization methods
Category Metaheuristics
Key Methods PSO, GA, SA, ACO
Inspiration Nature, physics, evolution
AM Uses Parameter tuning, process optimization

Optimization algorithms are methods for finding the best solution from a set of possible solutions. In machine learning and additive manufacturing, metaheuristic algorithms—inspired by natural phenomena—are widely used to optimize complex, non-linear problems where traditional methods fail.

These algorithms excel at finding near-optimal solutions for problems with many parameters, non-smooth objectives, or no closed-form solution. In AM, they optimize process parameters (temperature, speed, layer height) to maximize part quality or minimize defects.

Contents
  1. Overview
  2. Particle Swarm Optimization (PSO)
  3. Genetic Algorithm (GA)
  4. Simulated Annealing (SA)
  5. Comparison
  6. Applications in AM
  7. References

Overview

Traditional gradient-based optimization requires smooth, differentiable objective functions. Metaheuristic algorithms work without derivatives, making them suitable for:

Exploration vs. Exploitation: All metaheuristics balance exploration (searching new regions) and exploitation (refining known good regions). Too much exploration wastes time; too much exploitation misses the global optimum.

Particle Swarm Optimization (PSO)

How It Works

Inspired by bird flocking and fish schooling. A "swarm" of particles moves through the solution space, each tracking its personal best position and the global best found by any particle.

Update rules:

    Iteration 1              Iteration 10             Iteration 50

      ○  ○                       ○○                       ○
    ○    ○  ○                  ○○ ○                      ○○○
      ○      ○     ───▶          ○○○    ───▶            ○●○
    ○    ○                        ○○                     ○○
       ○                           ○                      ○

    (scattered)              (converging)           (at optimum ●)
            

Key Parameters

Genetic Algorithm (GA)

How It Works

Inspired by natural evolution. A population of solutions evolves over generations through selection, crossover, and mutation.

Steps:

  1. Initialize: Random population of solutions (chromosomes)
  2. Evaluate: Compute fitness of each solution
  3. Select: Choose parents based on fitness (tournament, roulette)
  4. Crossover: Combine parents to create offspring
  5. Mutate: Random changes to maintain diversity
  6. Repeat until convergence
    Parent 1:  [A B C D E F]     Parent 2:  [a b c d e f]
                    ↓                            ↓
              ──────┼────── (crossover point)
                    ↓
    Child 1:   [A B C d e f]     Child 2:  [a b c D E F]
                    ↓                            ↓
               (mutation)
                    ↓
    Child 1:   [A B C d X f]     (X = random mutation)
            

Key Parameters

Simulated Annealing (SA)

How It Works

Inspired by metallurgical annealing. A single solution explores the space, occasionally accepting worse solutions to escape local minima. The probability of accepting worse solutions decreases with "temperature."

Acceptance rule:

    Objective
       ▲
       │     ┌─┐
       │   ┌─┘ │   Global
       │ ┌─┘   │   Optimum
       │ │     │    ↓
       │ │     └───●───
       │ │
       │ │ Local
       │ └─Minimum
       │
       └─────────────────▶ Solution Space

    High T: Can "jump" out of local minimum
    Low T:  Refines solution near global optimum
            

Key Parameters

Comparison

Algorithm Inspiration Parallelism Best For Weaknesses
PSO Bird flocking Parallel (swarm) Continuous optimization, fast convergence May converge prematurely
GA Evolution Parallel (population) Discrete/mixed variables, complex landscapes Many parameters to tune
SA Metal annealing Sequential Combinatorial optimization, simple to implement Slow, single solution

Applications in Additive Manufacturing

Process Parameter Optimization:
Find optimal temperature, speed, and layer height to maximize tensile strength. Hassan et al. (2024) notes that metaheuristic algorithms combined with surrogate models (like neural networks) can find optimal print parameters with fewer experiments than full factorial designs.
Build Orientation Optimization:
GA is commonly used to find the optimal orientation for minimizing support material, build time, or surface roughness—a discrete optimization problem with complex interactions.

Common Use Cases

Hybrid Approaches

Modern AM optimization often combines metaheuristics with:

See Also

References