Skip to content
Yusuf KorkmazyiğitWorkPlayground
TR
← Work

Yusuf Korkmazyiğit · small experiments that run in your browser

Playground

Hands-on versions of ideas I use in my research. Everything runs in your browser right now; there is no server, and the results are recomputed every time.

01

Bees and dice

Artificial Bee Colony vs Random Search, on the same budget

ABC

Random Search

Best value vs number of evaluations (log scale) · ABC · Random Search

Left: Karaboğa's Artificial Bee Colony (ABC). Orange dots are food sources, i.e. candidate solutions. Employed bees try a neighbour, onlookers favour the better sources, and a scout restarts a source that keeps failing (dashed line). Right: Random Search, given exactly as many function evaluations per cycle as ABC used. The green star is each method's best so far; the cross marks the true minimum.

ABC does not always win this race: on the smooth 2-D Sphere the gap is small; on multimodal Rastrigin and Schwefel it becomes clear. In my TÜBİTAK project, ABC, Optuna and Random Search were statistically indistinguishable for hyperparameter tuning. Which method helps depends on the problem, which is why I measure.

Related: abcopt → · Cherenkov / scintillation separation →

02

Pallet loading

Two-dimensional bin packing: all boxes on as few pallets as possible

A top-down view of a EUR pallet (1200 × 800 mm); each cell is 100 mm. Boxes may be rotated but not stacked. The same load is packed three ways: First-Fit in arrival order, Best-Fit largest-first, and ABC searching over the loading order and orientations. Cargo, pallet and cutting-stock planning are problems of the same family; in practice the third dimension, weight and balance come in too.

First-Fit

arrival order, first pallet it fits

Best-Fit Decreasing

largest first, fullest pallet it fits

ABC

a bee colony searches order and orientation

Try it yourself

Pick a box (click it again or press R to rotate), then show where it goes on a pallet. Compare your result with the algorithms.

How does it work?

Every box goes to the lowest, then leftmost free spot on the pallet it is placed on (bottom-left). What separates the methods is the order and the choice of pallet. ABC does not search permutations directly; it gives every box a "key" number (random-key encoding). Sorting the keys yields a loading order, and a second set of keys gives each box its orientation. This lets ABC, designed for continuous spaces, work on a combinatorial problem. One food source in the colony starts from the largest-first order; the objective rewards fewer pallets first and, on ties, fuller pallets. One note: on easy loads all three methods reach the lower bound and tie, so "New load" picks loads where Best-Fit Decreasing cannot reach it. On such loads ABC usually saves a pallet in my tests, but not always.