Skip to content

Applications

These examples show how to model real problems with ypea and solve them. Each page explains the problem, builds the model step by step, solves one or two well known instances, and compares a few algorithms that suit the problem against the best known value. The full scripts are in examples/applications/ in the repository.

Example Field Variables Instances
Job shop scheduling scheduling one permutation ft06, ft10
Project scheduling project management one permutation (activity list), precedence and resources by construction PSPLIB j6021_4, 60 activities
Graph coloring timetabling, frequency assignment one integer color per vertex, conflicts as the objective DIMACS queen graphs queen6_6, queen8_8
Economic dispatch power systems real outputs, equality and inequality constraints 6 units, 13 units
PID controller tuning control three real gains, inequality constraints 1 / (s + 1)^3
Portfolio selection finance a selection and real shares, two objectives Hang Seng (port1)
Antenna array design electromagnetics one binary vector (which elements are on) 100-element thinned linear array
Traveling salesman problem routing, benchmark one permutation (the tour) TSPLIB eil51, st70
Vehicle routing with time windows logistics one permutation (giant tour), time windows by construction Solomon C101, 25, 50 and 100 customers
Inventory control operations, logistics integer reorder points and order sizes, a stochastic simulation one warehouse and four shops
Supply chain network design logistics integer site sizes, two objectives 12 sites, 40 customers
Water network design civil engineering one integer per pipe (catalog index), pressure constraints from a hydraulic solver two-loop, Hanoi
System identification control, modeling one binary vector (which terms the model has) 15 and 28 candidate terms

Every example is a problem where a metaheuristic is the right tool: a classical method (a gradient method, a linear or integer programming solver, a greedy rule) would not solve it as well or as easily. The one exception is the traveling salesman problem, the classic benchmark, where specialized solvers are the right tool and the page shows how close general methods get.