- Introduced by
- Deb et al. (NSGA-II, 2002); integrated with agent-based modeling frameworks in the 2000s–2010s
- Year
- 2000s–2010s
- Type
- Simulation-embedded evolutionary multi-objective optimizer
- Family
- Simulation / optimization
What does it do?
Agent-based NSGA-II embeds the NSGA-II evolutionary algorithm inside an agent-based simulation loop so that objective values for each candidate solution are determined by running a full agent simulation rather than by evaluating a closed-form function.
This coupling enables multi-objective optimization over systems whose performance emerges from the micro-level interactions of autonomous agents rather than from analytically tractable equations.
The intuition behind the method
Standard NSGA-II scores each candidate solution on several objectives with an analytic function. When system behaviour is too complex or emergent to write as a formula, such as epidemics, traffic networks or supply chains with adaptive actors, the function is replaced by an agent-based simulation. Each candidate encodes agent parameters or policy settings, the simulation is run forward, and its aggregate outcomes become the objective values. NSGA-II's non-dominated sorting and crowding-distance selection then build a spread of trade-off solutions. The output approximates the Pareto front of the simulated objectives, and its reliability depends on the simulation model and on how many replications support each score.
History
NSGA-II was proposed by Deb, Pratap, Agarwal and Meyarivan in 2002 as a multi-objective genetic algorithm that uses fast non-dominated sorting, elitist selection from the combined parent and offspring populations, and crowding distance to maintain spread. Agent-based modelling and simulation, the general approach to systems of autonomous, interacting agents, is surveyed by Macal and North (2010). The combined approach is described here through its two components, NSGA-II and agent-based simulation, and no single originating publication for the combination is given.
When to use it
Choose agent-based NSGA-II when two or more conflicting objectives must be optimised together and at least some of them arise from agent interactions that have no closed-form expression. An example is balancing epidemic containment cost against economic activity in a population model. The method suits systems in which stochasticity is intrinsic and must be averaged over replications. Do not use it when an analytic objective function exists, since plain NSGA-II is adequate and far cheaper. Avoid it when only one objective matters, when a single simulation run is so costly that even a small population with few replications is infeasible, or when there are four or more objectives, where NSGA-III or MOEA/D variants are usually preferred. Three assumptions underpin the method: the simulation must be calibrated and valid for the target system, otherwise the front describes the model rather than the real system; the replication count per evaluation must yield mean objectives stable enough to separate candidate solutions; and the objectives and constraints must be defined identically across all runs.
Limitations and considerations
- Computationally expensive: each generation requires N x R simulation runs, and R may need to be large for a stochastic model, so total wall-clock time can become prohibitive.
- With four or more objectives, many individuals tend to become mutually non-dominated, so non-dominated sorting loses discriminating power and crowding distance becomes less reliable.
- Results inherit the fidelity of the simulation. Unrealistic agent rules or poorly calibrated parameters produce Pareto fronts that may mislead, whatever the quality of the optimisation.
- If the replication count R is too small, the noise in the mean objective values can corrupt dominance comparisons and lead to incorrect Pareto ranking.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Scores solutions by running a simulation, so it applies to objectives that emerge from path-dependent or stochastic agent interactions and have no analytic form. The optimiser only needs a function that maps a decision vector to an objective vector, so it does not access the model's internals.
- Returns a set of trade-off solutions from a single run, so the trade-offs are visible before any preference weights between objectives are chosen.
- Elitism merges parents and offspring before selection, so strong solutions can survive into later generations. Truncation by crowding distance can still remove first-front members, so the best front is not guaranteed to be kept intact.
- Averaging over replications within each evaluation gives a more stable objective estimate than a single stochastic run, although it does not eliminate noise.
Applications
- Epidemic intervention design: searching for combinations of vaccination coverage and movement restrictions that trade off infection burden against economic cost in a population agent model.
- Urban land-use and transport planning: optimising zoning and infrastructure parameters whose congestion, emissions and equity outcomes arise from resident and vehicle agent interactions.
- Supply chain network design: identifying policy configurations that balance cost, lead time and disruption resilience across networks of adaptive supplier and distributor agents.
- Ecological harvest management: optimising harvesting rules to balance economic yield against biodiversity in an agent-based ecosystem model.
- Social policy analysis: finding intervention parameter sets that trade off income equity against labour market efficiency in agent-based economic models.
How it works
How it works
Define the decision variables (for example agent behavioural parameters, policy levers or resource allocations) and the conflicting objectives to optimise, such as minimising cost while maximising service rate. Build or parameterise an agent-based model that takes a decision-variable vector as input and returns objective measurements at the end of each run. Record the constraints, which are handled in the sorting step, the simulation duration and the number of stochastic replications per evaluation.
Create an initial population of N candidate vectors, sampled uniformly at random or by Latin hypercube sampling, so that each individual is one configuration of agent parameters or policy settings. Set the NSGA-II control parameters: population size N, crossover probability, mutation rate and the maximum number of generations.
For each individual, run the simulation R times and average the resulting objective values. Averaging reduces stochastic noise but does not remove it, and the mean objective vector becomes that individual's fitness. Increase R until the standard error of each mean objective is small relative to the differences between candidate solutions, and report the chosen R. This step dominates computational cost: each generation requires about N x R simulation runs of T time steps each.
Apply fast non-dominated sorting to rank the individuals into fronts F1, F2 and so on. F1 contains solutions that no other solution dominates, and each later front contains solutions dominated only by earlier fronts. Within each front, compute crowding distance from the normalised gaps between neighbouring solutions along each objective, so that isolated solutions are preferred and diversity is kept. When the problem has constraints, the dominance relation itself is modified, following the constrained-domination approach of NSGA-II (Deb et al., 2002), so constraint handling is built into this ranking.
Select parents by binary tournament using the crowded-comparison operator, which prefers the lower-numbered front and breaks ties by larger crowding distance. Produce N offspring with simulated binary crossover and polynomial mutation. Merge parents and offspring into a pool of 2N individuals, sort the pool again and keep the best N by front rank and crowding distance for the next generation.
When the generation budget is exhausted or the hypervolume has stopped improving, return front F1 of the final population as the approximate Pareto-optimal set. Plot the trade-off surface in objective space and summarise quality with hypervolume, aggregated over several independent runs. Because the metric is computed on simulated objectives, it inherits the simulation noise. A single solution is then chosen from F1 by a stated preference rule, such as a weighted trade-off or a minimum acceptable level on one objective, or by inspecting the trade-off surface with the decision makers.
Common pitfalls
- Using too few replications per individual (R = 1 or 2) with a stochastic simulation. The noisy fitness estimates cause the dominance-sorting step to misclassify solutions and corrupt the Pareto front.
- Setting population size N smaller than the complexity of the expected Pareto front. The algorithm then discards whole regions of the trade-off space and returns a fragmentary front.
- Applying the method to four or more objectives without switching to NSGA-III or MOEA/D. Many individuals then become mutually non-dominated, so selection pressure weakens and crowding distance becomes less reliable.
- Treating calibration and optimisation as one step. The simulation must be calibrated against observed data before optimisation, because optimising an uncalibrated model yields fronts with no real-world validity.
- Running the fitness evaluations sequentially. Each individual's simulation runs are independent, so the step parallelises naturally, and a single-threaded run wastes available hardware.
Frequently asked questions
How is agent-based NSGA-II different from plain NSGA-II?
Plain NSGA-II evaluates each solution by calling an analytic function, which is fast. Agent-based NSGA-II replaces that call with a full agent-based simulation run. This enables optimisation over emergent and path-dependent objectives, at a much higher computational cost per evaluation.
How many replications should I run per individual evaluation?
Enough that the objective estimates stop changing noticeably when further replications are added. A practical check is to measure the variability of each objective across replications at a few candidate configurations. Highly stochastic models generally need more replications, which increases cost in proportion.
How can I make agent-based NSGA-II computationally feasible?
Parallelise the simulation runs across CPU cores or a cluster, since each individual's runs are independent. Surrogate models such as Gaussian processes or neural networks can approximate fitness for cheap pre-screening, reserving full simulation evaluations for promising candidates.
What if I have four or more objectives?
Switch to NSGA-III or MOEA/D and keep the same simulation-based evaluation. NSGA-III uses reference-point-based selection in place of crowding distance and maintains diversity more effectively with many objectives. MOEA/D decomposes the problem into scalar subproblems and scales better to many-objective settings.
How do I check that the Pareto front is reliable?
Run several independent optimisations with different random seeds and compute hypervolume for each. Report the median and interquartile range across runs. Consistent hypervolume across seeds shows that the runs converge to similar fronts. It does not show that the front matches the true Pareto-optimal set, and simulation noise still affects these metrics, so also report the replication-level variability of the objectives at the final candidate solutions.
Related methods
Sources
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.
Open DOI referenceMacal, C. M., & North, M. J. (2010). Tutorial on agent-based modelling and simulation. Journal of Simulation, 4(3), 151-162.
Open DOI reference