Problems#

Library of interactive optimization problems from many application areas.

name

class

domain

synthetic

SyntheticPreference

benchmark

curve

CurveMatching

benchmark

pid

PIDTuning

process control

cstr

CSTRControl

process control

beer

BeerFermentation

process engineering

fuzzy

FuzzyPartitionDesign

fuzzy modelling

path

PathPlanning

robotics

photo

ImageEnhancement

image processing

segmentation

ImageSegmentation

image processing

julia

JuliaSet

generative art

attractor

StrangeAttractor

generative art

ifs

IFSFractal

generative art

flame

FractalFlame

generative art

cppn

CPPNArt

generative art

harmonograph

Harmonograph

generative art

biomorph

Biomorph

artificial life

lsystem

LSystemPlant

artificial life

automaton

CellularAutomaton

complex systems

supershape

SuperShape

graphic design

palette

ColorPalette

graphic design

chart

ChartStyle

data visualization

face

ChernoffFace

human perception

graph

GraphLayout

network science

melody

Melody

music

slogan

TextDesign

communication

The 25 problems of the package and the registry.

Classes#

SyntheticPreference([dim, kind, width, seed])

A hidden utility over \([0,1]^d\) for fast algorithm benchmarks.

CurveMatching([n_harmonics, seed])

Match a hidden target curve; the phenotype is a plotted Fourier series.

PIDTuning([K, tau, theta, dt, horizon, u_limit])

PID control of a first-order-plus-dead-time process \(G(s)=Ke^{-\theta s}/(\tau s+1)\).

CSTRControl([controller, dt, horizon])

Temperature control of an exothermic continuous stirred-tank reactor.

BeerFermentation([n_knots, horizon, dt, S0, ...])

Design of a fermentation temperature profile.

FuzzyPartitionDesign([n_terms])

Interpretable fuzzy partitions of a variable (five linguistic terms on [0, 1]).

PathPlanning([n_via, n_obstacles, seed, ...])

A robot path through a field of circular obstacles.

ImageEnhancement([image, size])

Photo colour grading with an eleven-parameter pipeline.

ImageSegmentation([size, n_cells, seed, ...])

Threshold-and-morphology segmentation of a synthetic microscopy scene with known ground truth.

JuliaSet([max_iter])

Filled Julia sets \(z\mapsto z^2+c\) with smooth escape-time colouring.

StrangeAttractor([n_points, n_iter])

Clifford and Peter de Jong attractors rendered as log-density images.

IFSFractal([n_points, n_iter])

Iterated function systems (Hutchinson, 1981; Barnsley, 1988) drawn by the chaos game.

FractalFlame([n_points, n_iter])

Fractal flames (Draves and Reckase, 2008): nonlinear IFS with log-density colouring.

CPPNArt()

Images from compositional pattern-producing networks (Stanley, 2007), as in Picbreeder.

Harmonograph([n_points])

Harmonograph drawings: two damped pendulums per axis.

Biomorph()

Dawkins's biomorphs (The Blind Watchmaker, 1986).

LSystemPlant([max_chars])

Bracketed L-system plants (Prusinkiewicz and Lindenmayer, 1990, Fig.

CellularAutomaton([width, steps])

One-dimensional, three-state totalistic cellular automata (Wolfram, 1984) as space–time images.

SuperShape()

Nested superformula shapes (Gielis, 2003).

ColorPalette()

Five-colour palettes previewed on a dashboard card.

ChartStyle()

Styles of a small line/bar chart (colours, widths, grid, fonts, chart type).

ChernoffFace()

Chernoff faces (Chernoff, 1973): facial features as design variables.

GraphLayout([graph])

Aesthetic drawing of a network (Zachary's karate club, Zachary 1977, via networkx).

Melody([n_steps])

Sixteen-step melodies in a chosen scale.

TextDesign([topic, keywords, client, ...])

Short texts (slogans, taglines) for a given topic.

TemplateText([templates, bank])

Offline representation of short texts (template generation, lexical operators).

LLMText(client, topic[, language, style, ...])

LLM-based generation, mutation and crossover of texts (with an offline fallback).

Functions#

make(name, **kw)

Instantiate a problem by registry name: make("julia").

list_problems()

Overview table (pandas) of the problem library.

response_metrics(t, y, r, u, t0[, t1, band])

IAE, overshoot (%), settling time and input total variation of a setpoint response on [t0, t1).

contrast_ratio(a, b)

WCAG 2.1 contrast ratio \((L_1+0.05)/(L_2+0.05)\) (1 to 21).

relative_luminance(rgb)

WCAG 2.1 relative luminance of an sRGB colour in [0, 1].

synthetic_cells([size, n, seed, noise, ...])

A microscopy-like scene with its true mask.

synthetic_photo([size, seed])

A procedurally generated landscape (sky, sun, hills, lake, trees) in [0, 1].

Constants#