APPLIED AI · OPTIMIZATION · 2026

DGWO-F2OPT

Dynamic Grey Wolf Optimizer
with Floating 2-opt Local Search

A multi-objective optimization approach for humanitarian vehicle routing under dynamic flood disaster conditions — balancing distance, time-windows, flood risk, and critical-node coverage.

CVRPTWMetaheuristicFuzzy LogicMulti-ObjectivePythonCVRPLIB
ROLEOptimization & Algorithm Developer
RESPONSIBILITIESDGWO Engine · Floating 2-opt · CVRPTW Benchmarks
TECH STACKPython · PyTorch · NumPy · SciPy · CVRPLIB
PROBLEM DOMAINHumanitarian Flood Disaster Routing
ROUTE OPTIMIZER · LIVE
DDepotPriority NodeFlood RiskRoute 1Route 2Route 3Route 4ROUTE NETWORK · 80 NODES
80
Delivery Nodes
10
Vehicles
100
Vehicle Capacity
4
Objectives
30
Experimental Runs
01 / THE PROBLEM

Humanitarian Routing
Under Uncertainty

During flood disasters, aid vehicles must reach affected communities as quickly as possible — but roads may be flooded, node urgency varies by victim count, and strict time-windows determine whether aid arrives in time.

Classical routing methods fail here. DGWO-F2OPT was designed to simultaneously optimize distance, time-window feasibility, flood-risk exposure, and critical-node coverage using a multi-objective framework.

Flood Risk
Victim Count
Damage Severity
Time Windows
Vehicle Capacity
Flood Disaster Event
🌊Dynamic Road Conditions
Affected Node Priority
Vehicle Constraints
CVRPTW Formulation
Multi-Objective DGWO
Optimal Pareto Routes
02 / FUZZY PRIORITY SYSTEM

Mamdani Fuzzy Inference

Node priority is not deterministic — it depends on multiple overlapping indicators. A Mamdani fuzzy inference system fuses victim count, damage severity, and flood risk into a single actionable priority score.

COUNTVictimsLEVELDamage SeverityINDEXFlood RiskMAMDANIFUZZYINFERENCEPRIORITYSCORE0.76 / HIGH

Three Fuzzy Inputs

Victims

Number of people affected at the node. Higher counts increase priority.

Damage Severity

Infrastructure and property damage level. Severe damage signals urgent routing.

Flood Risk

Real-world flood index from BNPB 2016–2022 data, calibrated stochastically.

OUTPUTPriority Score (Defuzzified)
03 / ALGORITHM DESIGN

Inside DGWO-F2OPT

Seven-stage optimization pipeline combining global metaheuristic search with local search intensification and multi-objective Pareto preservation.

STEP 01Equal-Division Random Key Encoding

Initialize Population

A population of candidate solutions is initialized using equal-division random key encoding, ensuring diverse and balanced initial route distributions across the search space.

04 / GREY WOLF MECHANISM

Social Hierarchy
as Optimization Engine

The Grey Wolf Optimizer mimics the leadership hierarchy of wolf packs. The three best solutions (Alpha, Beta, Delta) guide the search direction for the remaining population (Omega), naturally balancing exploration and exploitation.

α
AlphaBest known solution
β
BetaSecond-best solution
δ
DeltaThird-best solution
ω
OmegaGeneral population
αALPHABest solution — leads search directionβBETASecond-best — assists optimizationδDELTAThird-best — boundary awarenessωOMEGAGeneral population — explores spaceEXPLORATIONEXPLOITATIONCONVERGENCE
05 / LOCAL SEARCH

Local Search Refinement

Floating 2-opt refines candidate routes by restructuring route segments after the global optimization step, finding improvements that the global search alone would miss.

● BEFORE 2-OPT
ABCDEA → B → C → D → E → A
Crossing edges → inefficient route
EDGE SWAP
AFTER 2-OPT
ABCDEA → C → B → D → E → A
Resolved crossing → shorter, feasible route

Floating 2-opt applies this restructuring flexibly across all route segments — not just adjacent pairs — allowing deeper local optima to be found within each iteration.

06 / EXPERIMENTAL SETUP

Research Dashboard

BENCHMARK INSTANCE
A-n80-k10
CVRPLIB Standard Benchmark
80Nodes
10Vehicles
100Capacity
4Objectives
Flood overlay: BNPB Indonesia 2016–2022
COMPARISON METHODS
M1
Classic GAGenetic Algorithm (Standard)
M2
Adaptive GAAdaptive crossover/mutation rates
M3
MPSOMulti-objective Particle Swarm
DGWO-F2OPTProposed Method
PROPOSED
07 / RESULTS

Performance Comparison

Results across four humanitarian objectives. Only values supported by the project data are shown. Qualitative labels indicate relative performance where exact figures are unavailable.

ADJUSTED DISTANCEunits (lower = better)
DGWO-F2OPT
3,062.2
Adaptive GA
Competitive
MPSO
Moderate
Classic GA
Infeasible
TIME-WINDOW PENALTYpenalty score (lower = better)
DGWO-F2OPT
6,211
Adaptive GA
High
MPSO
Higher
Classic GA
96,584
DGWO-F2OPT
Lowest Adjusted Distance
Lowest Time-Window Penalty
Full Time-Window Feasibility
Pareto Optimal Solutions
MPSO
Best Risk Exposure
Best Critical Coverage
Adaptive GA
Best Response Efficiency
Classic GA
✗ Operationally Infeasible
✗ TW Penalty: 96,584
08 / MULTI-OBJECTIVE TRADE-OFFS

Pareto Front

Multi-objective optimization produces a set of non-dominated solutions rather than a single answer. Each point on the Pareto front represents a different trade-off between competing objectives.

Hover over the points to explore individual solutions. Non-dominated solutions (on the front) cannot be improved on one objective without sacrificing another.

Non-dominated (Pareto front)
Dominated solutions
DISTANCE →RISK →DGWONON-DOMINATED FRONT
"Shortest distance ≠ Best humanitarian route."

Humanitarian routing must simultaneously balance travel distance, time-window feasibility, flood-risk exposure, and critical-node coverage. A route that is shortest may be infeasible, high-risk, or leave critical communities unserved. DGWO-F2OPT is designed to find routes that are not just fast — but safe, feasible, and effective.

09 / TECHNOLOGY STACK

Built With

LANGUAGE & COMPUTE
PythonNumPyPandasSciPy
OPTIMIZATION
Grey Wolf OptimizerFloating 2-optPareto ArchiveRandom Key Encoding
FUZZY & DECISION
Mamdani Fuzzy Logicscikit-fuzzyMulti-Criteria Decision
BENCHMARK & VIZ
CVRPLIBMatplotlibBNPB DataRoute Visualization
10 / CONTRIBUTION

What I Built

Algorithm Design

Designed the full DGWO-F2OPT algorithm combining Grey Wolf, Floating 2-opt, and dynamic Pareto archive into a unified optimization engine.

Mathematical Modeling

Formulated the humanitarian CVRPTW with multi-objective constraints including adjusted distance, time-window penalty, risk exposure, and priority coverage.

Fuzzy Logic Integration

Implemented Mamdani fuzzy inference for node priority scoring using real-world BNPB flood data as the risk foundation.

Pareto Archive

Built a dynamic non-dominated Pareto archive that preserves trade-off diversity across multiple objectives throughout optimization.

Experimental Evaluation

Conducted 30-run experiments against Classic GA, Adaptive GA, and MPSO baselines. Analyzed results across all four objective dimensions.

Multi-Objective Analysis

Analyzed trade-offs on Pareto fronts, demonstrating that minimizing distance alone does not yield the best humanitarian routing outcome.

11 / FEATURE COMPARISON

Why DGWO-F2OPT?

FeatureClassic GAAdaptive GAMPSODGWO-F2OPT
Multi-objective
Time-window feasibility
Flood risk awareness
Priority node coverage
Local search (2-opt)
Dynamic Pareto archive
Fuzzy priority scoring

Explore the DGWO-F2OPT Optimization Codebase

View the multi-objective Grey Wolf Optimizer, floating 2-opt local search engine, and CVRPTW benchmark evaluation.