Optimization types

A classification of optimization problems into 25 types on 8 axes: the nature of the variables, the number of objectives, constraints, the shape of the function, search scope, available information, time, and size. Each type has a definition, a mathematical formulation, an AI example and how nature-inspired algorithms handle it.

The general formulation of an optimization problem

\min_{x\in\Omega} f(x)\quad \text{s.t.}\quad g_j(x)\le 0,\ \ h_k(x)=0,\ \ \Omega\subseteq\mathcal{X}

Every optimization problem consists of decision variables x that live in a search space, one or more objective functions f, and constraints g and h that define the acceptable solutions. Classifying the problem means answering independent questions about each component, and a single problem belongs to one type on every axis at once: hyperparameter tuning, for example, is a mixed-variable problem, usually single-objective, bound-constrained, multimodal, black-box and expensive to evaluate.

This page classifies the mathematical problem itself. The "Optimization type" filter in the encyclopedia classifies the optimization task in machine learning (hyperparameter tuning, Feature Selection, architecture search...), and each of these tasks has a related mathematical type stated in the cards below.

Identify your problem type

Answer the four questions to see the types that describe your problem, with the algorithms each type is linked to in the encyclopedia.

By the nature of the decision variables

Decision variables

The first question before choosing any algorithm: what does a solution look like? The way an individual is represented (vector, binary string, permutation, tree) determines the suitable update operators, and most nature-inspired algorithms were originally designed for the continuous domain and then extended with discrete or binary versions.

Continuous optimization

Continuous optimization

The variables are real numbers that take any value within a given range, so the search space is part of Euclidean space. It is the original domain of most swarm and physics algorithms in the encyclopedia, and the simulator's standard test functions are built on it.

\min_{x\in\mathbb{R}^d} f(x),\qquad l_i\le x_i\le u_i
AI example
Tuning the learning rate and the regularization coefficient, optimizing the weights of a small network without derivatives, and calibrating the parameters of a physical model.
How nature-inspired algorithms handle it
The algorithms work directly on real vectors by adding random steps, differences or jumps, then clipping the values to the bounds.

From the encyclopedia: PSO DE CMA-ES GWO WOA HHO

  • Storn, R., & Price, K. (1997). Differential evolution – A simple and efficient heuristic for global optimization over continuous spaces. Journal of Global Optimization, 11(4), 341–359. doi:10.1023/A:1008202821328

Discrete and integer optimization

Discrete / integer optimization

The variables take only countable values or integers, such as the number of layers or the batch size from a list. Intermediate values are meaningless, and a small change in one variable may change the whole shape of the solution.

\min_{x\in\mathbb{Z}^d\cap[l,u]} f(x)
AI example
Choosing the number of layers, cells and the kernel size in a convolutional network, or the number and depth of trees in a random forest.
How nature-inspired algorithms handle it
The common approach is to round the continuous variable to the nearest allowed value at evaluation, or to use native discrete operators as in GA and HS.

From the encyclopedia: GA HS SA BBO

Binary optimization

Binary optimization

Each variable is 0 or 1, so the solution becomes a bit string of length d and the size of the space is 2 to the power d. It is the natural representation for selection and exclusion problems.

\min_{x\in\{0,1\}^d} f(x),\qquad |\mathcal{S}|=2^d
AI example
Feature selection, where bit 1 means keeping the feature, and pruning connections or channels in neural networks.
How nature-inspired algorithms handle it
Continuous algorithms are turned into binary ones with a sigmoid or V-shaped transfer function that turns the velocity or position into a bit-flip probability, as in binary PSO.

From the encyclopedia: PSO GA GWO WOA

  • Kennedy, J., & Eberhart, R. C. (1997). A discrete binary version of the particle swarm algorithm. IEEE International Conference on Systems, Man, and Cybernetics, 5, 4104–4108. doi:10.1109/ICSMC.1997.637339

Combinatorial and permutation optimization

Combinatorial / permutation optimization

The solution is an ordering or combination of a finite set of elements, such as a route that visits every city once or a task schedule. The number of solutions grows factorially (n!), and many of these problems are NP-hard.

\min_{\pi\in S_n} \sum_{k=1}^{n} c\big(\pi_k,\pi_{k+1}\big)
AI example
Scheduling training jobs on processing units, ordering layers or operations in architecture search, and routing and scheduling problems in general.
How nature-inspired algorithms handle it
They need operators that keep the permutation valid (swap, insertion, segment reversal, order crossover). ACO was originally designed for this type because it builds the solution element by element.

From the encyclopedia: ACO GA SA

Mixed optimization

Mixed-variable (mixed-integer) optimization

It combines continuous, integer and categorical variables in the same solution. This is the usual form of hyperparameter tuning in machine learning.

\begin{gathered}\min_{x=(x_c,\,x_z,\,x_k)} f(x)\\ x_c\in\mathbb{R}^{d_c},\ x_z\in\mathbb{Z}^{d_z},\ x_k\in\mathcal{K}\end{gathered}
AI example
Tuning the learning rate (continuous) together with the number of units (integer) and the optimizer type (categorical: Adam or SGD).
How nature-inspired algorithms handle it
Each variable is encoded with a suitable representation and decoded at evaluation, with specific operators for each type. GA, SA and HS handle it relatively easily.

From the encyclopedia: GA SA HS BBO CA

Structure and program optimization

Structural / program optimization

The solution is a variable-length structure such as an expression tree, a program or a network architecture graph, so the number of variables is not fixed in advance.

\begin{gathered}\min_{T\in\mathcal{T}} f(T)\\ \mathcal{T}=\{\text{trees over } F\cup V\}\end{gathered}
AI example
Discovering a mathematical formula from data (Symbolic Regression), and neural architecture search (NAS).
How nature-inspired algorithms handle it
Genetic programming (GP) represents the solution as a tree and applies crossover and subtree replacement, while controlling size growth (Bloat).

From the encyclopedia: GP GA

By the number of objectives

Number of objectives

Are we looking for one best solution or for a set of solutions balanced between conflicting objectives? The answer changes the comparison criterion itself: a single value or a dominance relation.

Single-objective

Single-objective optimization

A single objective function is minimized or maximized, so comparing two solutions is direct and the output is one best solution.

x^{*}=\arg\min_{x\in\Omega} f(x)
AI example
Minimizing the validation error of a classification model, or maximizing a model's accuracy after tuning its hyperparameters.
How nature-inspired algorithms handle it
It is the original form of almost every algorithm in the encyclopedia. When there is more than one criterion they can be combined in a weighted sum, but the weights determine in advance which solution will appear.

From the encyclopedia: PSO DE GWO CMA-ES

Multi-objective

Multi-objective optimization

Two or three conflicting objectives that cannot be improved together. There is no single best solution, but a Pareto set of solutions none of which dominates another, and its image in objective space is the Pareto front.

\begin{gathered}\min_{x\in\Omega} F(x)=\big(f_1(x),\dots,f_m(x)\big)\\ x\prec y \iff \forall i:\ f_i(x)\le f_i(y)\\ \wedge\ \exists j:\ f_j(x)<f_j(y)\end{gathered}
AI example
Balancing accuracy against model size or inference time, or classification accuracy against the number of selected features.
How nature-inspired algorithms handle it
Dominance and non-dominated sorting are used with a diversity measure (NSGA-II), or the problem is decomposed into weighted subproblems (MOEA/D), or an external archive of leaders is kept (MOPSO). Results are evaluated with indicators such as Hypervolume and IGD.

From the encyclopedia: GA PSO GWO DE

  • Deb, K., Pratap, A., Agarwal, S., & Meyarivan, T. (2002). A fast and elitist multiobjective genetic algorithm: NSGA-II. IEEE Transactions on Evolutionary Computation, 6(2), 182–197. doi:10.1109/4235.996017
  • Zhang, Q., & Li, H. (2007). MOEA/D: A multiobjective evolutionary algorithm based on decomposition. IEEE Transactions on Evolutionary Computation, 11(6), 712–731. doi:10.1109/TEVC.2007.892759
  • Coello Coello, C. A., Toscano Pulido, G., & Salazar Lechuga, M. (2004). Handling multiple objectives with particle swarm optimization. IEEE Transactions on Evolutionary Computation, 8(3), 256–279. doi:10.1109/TEVC.2004.826067

Many-objective

Many-objective optimization

Four or more objectives. As the number of objectives grows, most of the population becomes non-dominated, so the dominance relation loses its power to discriminate and the front is hard to display.

\min_{x\in\Omega} \big(f_1(x),\dots,f_m(x)\big),\qquad m\ge 4
AI example
Designing a model that balances accuracy, time, memory, energy consumption and fairness across groups at the same time.
How nature-inspired algorithms handle it
Reference points, decomposition or performance indicators are used instead of dominance alone, with correlated objectives reduced where possible.

From the encyclopedia: GA DE

  • Zhang, Q., & Li, H. (2007). MOEA/D: A multiobjective evolutionary algorithm based on decomposition. IEEE Transactions on Evolutionary Computation, 11(6), 712–731. doi:10.1109/TEVC.2007.892759

By constraints

Constraints

Constraints define the acceptable region of solutions. Nature-inspired algorithms do not handle constraints automatically; they need an explicit mechanism for it.

Unconstrained

Unconstrained optimization

No constraints on the variables other than the search range chosen for the experiment. Every point in the space is an acceptable solution.

\min_{x\in\mathbb{R}^d} f(x)
AI example
Minimizing a loss function with no constraints on the weights.
How nature-inspired algorithms handle it
The simplest case. In practice wide bounds are given for the search range because the initial population needs a region to be generated in.

From the encyclopedia: PSO DE CMA-ES

Bound-constrained

Bound-constrained (box) optimization

Each variable has only a lower and an upper bound. This is the setting used for all test functions in the simulator.

\begin{gathered}\min_{x} f(x)\\ \text{s.t.}\ \ l_i\le x_i\le u_i,\ \ i=1,\dots,d\end{gathered}
AI example
The learning rate between 0.00001 and 0.1, and the Dropout rate between 0 and 0.5.
How nature-inspired algorithms handle it
A solution that leaves the range is returned by clipping, reflection or random regeneration within the bounds, and each option affects search behaviour near the edges.

From the encyclopedia: PSO DE GWO WOA SCA

Generally constrained

Constrained optimization

Equality constraints or linear or non-linear inequalities divide the space into an acceptable region and a rejected one, and the acceptable region may be very small or disconnected.

\begin{gathered}\min_{x} f(x)\\ \text{s.t.}\ \ g_j(x)\le 0,\ \ h_k(x)=0\end{gathered}
AI example
Training a model on condition that its size does not exceed a given limit, or with a fairness condition across groups, or an engineering design with stress constraints.
How nature-inspired algorithms handle it
The best-known approaches: penalty functions that add the amount of violation to the objective, Deb's feasibility rules that always prefer the feasible solution and then the less violating one, and repairing infeasible solutions.

From the encyclopedia: GA DE PSO TLBO

  • Deb, K. (2000). An efficient constraint handling method for genetic algorithms. Computer Methods in Applied Mechanics and Engineering, 186(2–4), 311–338. doi:10.1016/S0045-7825(99)00389-8

By the shape of the function landscape

Fitness landscape

The shape of the function sometimes determines the difficulty of the problem more than the number of variables. You can see the difference directly in the simulator by running the same algorithm on Sphere and then on Rastrigin.

Convex and non-convex

Convex vs non-convex

A convex function on a convex domain has a single global minimum, and every local minimum in it is global. Most deep learning and hyperparameter tuning problems are non-convex.

\begin{gathered}f\big(\lambda x+(1-\lambda)y\big)\le \lambda f(x)+(1-\lambda)f(y)\\ \lambda\in[0,1]\end{gathered}
AI example
Regularized logistic regression is a convex problem, while training a deep neural network is non-convex.
How nature-inspired algorithms handle it
In convex, differentiable problems, gradient methods are far more efficient than nature-inspired algorithms; the latter are useful in non-convex or non-differentiable problems.

From the encyclopedia: CMA-ES DE

Unimodal and multimodal

Unimodal vs multimodal

A unimodal function has a single basin of attraction, so it tests exploitation and convergence speed. A multimodal function has many local minima that test exploration and the ability to escape them.

f(x)=10d+\sum_{i=1}^{d}\big[x_i^2-10\cos(2\pi x_i)\big]
AI example
The validation error surface as a function of the hyperparameters is often multimodal and noisy.
How nature-inspired algorithms handle it
It requires a balance between exploration and exploitation, and niching techniques may be used if the goal is to find several good solutions rather than one.

From the encyclopedia: PSO GA DE GWO HHO CS

Separable and non-separable

Separable vs non-separable

In a separable function each variable can be optimized on its own. In a non-separable one the variables interact, so changing one variable changes the optimal value of others, as in the curved Rosenbrock valley.

f(x)=\sum_{i=1}^{d} f_i(x_i)\quad\text{(separable)}
AI example
The learning rate and the batch size are interacting variables: a good value for one depends on the other.
How nature-inspired algorithms handle it
Algorithms that learn the shape of the distribution and rotate the axes, such as CMA-ES, usually outperform on non-separable problems, while some axis-wise operators benefit from separability.

From the encyclopedia: CMA-ES DE PSO

Non-differentiable or noisy

Non-differentiable / noisy

The function has no gradient, or has jumps, or gives slightly different values when the evaluation is repeated because of randomness.

\tilde f(x)=f(x)+\varepsilon,\qquad \varepsilon\sim\mathcal{N}(0,\sigma^2)
AI example
A model's accuracy after training changes with the random seed and the data split, and the number of selected features is a discontinuous function.
How nature-inspired algorithms handle it
Population-based algorithms do not need a gradient, but noise confuses selection, so re-evaluation, averaging or selection based on multiple samples is advisable.

From the encyclopedia: GA DE PSO CMA-ES

  • Jin, Y., & Branke, J. (2005). Evolutionary optimization in uncertain environments—A survey. IEEE Transactions on Evolutionary Computation, 9(3), 303–317. doi:10.1109/TEVC.2005.846356

By search scope

Search scope

Do we settle for improving an existing solution in its neighbourhood, or search for the best solution in the whole space?

Local optimization

Local optimization

It starts from an initial solution and improves it in its neighbourhood until it reaches a local minimum. Fast and precise, but it depends on the starting point.

x_{t+1}=x_t+\Delta_t,\qquad f(x_{t+1})\le f(x_t)
AI example
Gradient descent in network training, or refining the best solution a swarm algorithm found in its final stage.
How nature-inspired algorithms handle it
It is often combined with global algorithms in hybrid (memetic) patterns: the population-based algorithm explores, and local search refines.

From the encyclopedia: SA Jaya

Global optimization

Global optimization

It aims for the global minimum over the whole space and requires exploration mechanisms that prevent getting stuck early in a local minimum. Stochastic algorithms do not guarantee reaching it in finite time; they increase its likelihood.

f(x^{*})\le f(x)\quad \forall x\in\Omega
AI example
Searching for the best configuration of a model's hyperparameters in a large multimodal space.
How nature-inspired algorithms handle it
This is the main role of nature-inspired algorithms. The No Free Lunch theorem is a reminder that the average performance of any two algorithms over all possible problems is equal, so there is no absolutely best algorithm.

From the encyclopedia: PSO GA DE GWO CMA-ES SA

  • Wolpert, D. H., & Macready, W. G. (1997). No free lunch theorems for optimization. IEEE Transactions on Evolutionary Computation, 1(1), 67–82. doi:10.1109/4235.585893

By available information and evaluation cost

Available information and cost

What do we know about the function, and how much does it cost to compute? This question often settles the choice between gradient methods, population-based algorithms and surrogate models.

Gradient-based

Gradient-based (white-box)

The function has a known formula and is differentiable, so the gradient is used to determine the direction of improvement.

x_{t+1}=x_t-\eta\,\nabla f(x_t)
AI example
Training neural network weights with backpropagation and Adam.
How nature-inspired algorithms handle it
Nature-inspired algorithms are usually slower here, but they are used to initialize weights or to tune the hyperparameters around training.

From the encyclopedia: CMA-ES

Black box

Black-box (derivative-free)

We know nothing about the function except its value at the points we evaluate, with no formula or gradient.

x\ \longmapsto\ \boxed{\ f\ }\ \longmapsto\ f(x)
AI example
Evaluating a full model on validation data for a given set of hyperparameters.
How nature-inspired algorithms handle it
This is the natural domain of nature-inspired algorithms because they need only the function value. A fair comparison between them uses the same number of evaluations, not the same number of iterations.

From the encyclopedia: PSO DE GA CMA-ES GWO

Expensive to evaluate

Expensive optimization (surrogate-assisted)

Each evaluation takes minutes or hours, so only tens or hundreds of evaluations are allowed.

\begin{gathered}\hat f(x)\approx f(x)\\ x_{\text{next}}=\arg\max_x\ \mathrm{EI}(x)\end{gathered}
AI example
Searching for a deep network architecture, where each evaluation requires full training.
How nature-inspired algorithms handle it
A surrogate model such as a Gaussian process or a random forest is built to approximate the function, and the population-based algorithm explores the surrogate rather than the real function, with periodic updates to it.

From the encyclopedia: GA PSO DE

  • Jones, D. R., Schonlau, M., & Welch, W. J. (1998). Efficient global optimization of expensive black-box functions. Journal of Global Optimization, 13(4), 455–492. doi:10.1023/A:1008306431147
  • Jin, Y., Olhofer, M., & Sendhoff, B. (2002). A framework for evolutionary optimization with approximate fitness functions. IEEE Transactions on Evolutionary Computation, 6(5), 481–494. doi:10.1109/TEVC.2002.800884

By time and uncertainty

Time and uncertainty

In real problems the function may change over time, or its inputs may be uncertain.

Static and dynamic

Static vs dynamic optimization

In a static problem the function does not change during the search. In a dynamic one the location of the optimum moves over time, so the goal is to track it rather than find it once.

\min_{x} f(x,t),\qquad x^{*}(t)\ \text{changes with } t
AI example
Retuning a forecasting model when the data distribution shifts (concept drift), and scheduling resources in a changing environment.
How nature-inspired algorithms handle it
It requires maintaining diversity, detecting change, and reinitializing part of the population or keeping a memory of previous solutions.

From the encyclopedia: PSO DE GA

  • Jin, Y., & Branke, J. (2005). Evolutionary optimization in uncertain environments—A survey. IEEE Transactions on Evolutionary Computation, 9(3), 303–317. doi:10.1109/TEVC.2005.846356

Stochastic and robust

Stochastic and robust optimization

The inputs or the environment are uncertain, so the goal is a solution that is good on average or in the worst case, not an ideal solution in one circumstance.

\begin{gathered}\min_{x}\ \mathbb{E}_{\xi}\big[f(x,\xi)\big]\\ \text{or}\ \ \min_{x}\max_{\xi\in U} f(x,\xi)\end{gathered}
AI example
Choosing model hyperparameters that keep their performance across several data splits, not on one lucky split.
How nature-inspired algorithms handle it
Solutions are evaluated on multiple samples of the uncertainty, or with a robustness measure such as the mean with the variance, and it is often formulated as a multi-objective problem (performance versus stability).

From the encyclopedia: DE GA CMA-ES

  • Jin, Y., & Branke, J. (2005). Evolutionary optimization in uncertain environments—A survey. IEEE Transactions on Evolutionary Computation, 9(3), 303–317. doi:10.1109/TEVC.2005.846356

By size and structure

Scale and structure

Some problems require special methods because of their size or because they contain an optimization problem inside another.

Large-scale

Large-scale optimization

Hundreds or thousands of variables, so the size of the space grows exponentially (the curse of dimensionality) and the performance of algorithms designed for tens of variables declines.

\min_{x\in\mathbb{R}^d} f(x),\qquad d\ge 1000
AI example
Feature selection from gene data or spectral images that contain thousands of features.
How nature-inspired algorithms handle it
Decomposition into cooperating groups of variables (cooperative co-evolution), detecting interactions between variables, and dimensionality reduction, bearing in mind that the cost of some algorithms such as CMA-ES grows quickly with d.

From the encyclopedia: DE PSO CMA-ES

  • Omidvar, M. N., Li, X., & Yao, X. (2022). A review of population-based metaheuristics for large-scale black-box global optimization—Part I. IEEE Transactions on Evolutionary Computation, 26(5), 802–822. doi:10.1109/TEVC.2021.3130838

Bi-level

Bilevel optimization

An outer optimization problem whose solution can be evaluated only after an inner optimization problem has been solved completely.

\begin{gathered}\min_{x_u} F\big(x_u, x_l^{*}\big)\\ \text{s.t.}\ \ x_l^{*}\in\arg\min_{x_l} f(x_u,x_l)\end{gathered}
AI example
Hyperparameter tuning (the outer level), which requires training the weights (the inner level) for each proposal, and architecture search together with training its weights.
How nature-inspired algorithms handle it
A population-based algorithm is used for the outer level and a faster, usually gradient-based, method for the inner level, or a surrogate model approximates the inner-level solution.

From the encyclopedia: GA DE PSO

  • Sinha, A., Malo, P., & Deb, K. (2018). A review on bilevel optimization: From classical to evolutionary approaches and applications. IEEE Transactions on Evolutionary Computation, 22(2), 276–295. doi:10.1109/TEVC.2017.2712906

The references cited in the cards are published and matched with Crossref records (verified on 20 November 2026). Linking types to algorithms is indicative and depends on each algorithm's original design and its known versions, and it implies no ranking or superiority; the "No Free Lunch" theorem is a reminder that performance is decided by experiment on the problem itself.