Introduction to Panobbgo#

What is Panobbgo?#

Panobbgo (Parallel Noisy Black-Box Global Optimization) is a Python framework for optimizing black-box functions where:

  • Black-box: You can only evaluate the function, not analyze its structure

  • Global: You seek the global optimum, not just local minima

  • Noisy: Function evaluations may be stochastic or have errors

  • Constrained: You can handle constraint violations

  • Parallel: Evaluations can run simultaneously on distributed clusters

The Black-Box Optimization Problem#

Given:

  • An unknown function \(f: \mathbb{R}^n \rightarrow \mathbb{R}\)

  • A bounding box \(B = [x_1^{min}, x_1^{max}] \times \cdots \times [x_n^{min}, x_n^{max}]\)

  • Optional constraint functions \(g_i(x) \leq 0\) for \(i = 1, \ldots, m\)

  • A limited evaluation budget \(N_{max}\)

Find:

\[x^* = \arg\min_{x \in B} f(x) \quad \text{subject to} \quad g_i(x) \leq 0, \; \forall i\]

Real-World Challenges#

  1. Expensive evaluations: Each \(f(x)\) might take minutes to hours

  2. No gradients: Cannot use derivative-based methods

  3. Noise: \(f(x + \epsilon) \approx f(x)\) but not exactly

  4. Unknown smoothness: \(f\) might be discontinuous or highly multimodal

  5. Limited budget: Can only afford 100-10,000 evaluations

Panobbgo’s Solution#

Panobbgo addresses these challenges through:

  1. Multiple search heuristics working in parallel

  2. Adaptive strategy selection (Multi-Armed Bandit approach)

  3. Result database to avoid re-evaluations and learn from history

  4. Event-driven architecture for modular, extensible design

  5. Parallel evaluation engines (Threaded, Processes, or Dask)

Key Features#

Architecture#

  • Event-driven design: Modules communicate through an EventBus

  • Modular components: Easy to add new heuristics, analyzers, or strategies

  • Result database: Pandas-based storage with automatic event publishing

  • Parallel evaluation: Support for local threads, subprocesses, or Dask clusters

Point Generators (Heuristics)#

Panobbgo includes diverse heuristics with different search strategies:

Type

Heuristics

Strategy

Initialization

Center, Zero

Start at known points

Random Sampling

Random, Extremal, Latin Hypercube

Explore broadly

Local Search

Nearby, Weighted Average

Refine around best (Nearby is sensitivity-aware when paired with the Sensitivity analyzer)

Model-Based

Quadratic WLS, Gaussian Process

Fit surrogate, optimize acquisition function (EI / UCB / PI, with EIC under constraints)

Classical Optimizers

Nelder-Mead, L-BFGS-B

Local optimization

Population-Based

CMA-ES (with optional IPOP restarts), Differential Evolution

Global evolutionary search; CMA-ES excels on ill-conditioned/ridge-following problems, DE on multimodal ones

Cluster-Based

ClaudeHeuristic

Mixture-of-Gaussians over elite points, related to Cross-Entropy / EDA methods

Constraint Handling

Feasible Search, Constraint Gradient, Local Penalty Search, Constraint Repair

Target feasible regions, minimise penalised objective, repair infeasible points

Adaptive Selection#

Panobbgo provides several adaptive strategies based on multi-armed bandit algorithms, plus a budget-phased meta-strategy:

  • StrategyRewarding: Probability-based selection with additive smoothing and performance decay (softmax bandit).

  • StrategyUCB: Upper Confidence Bound (UCB1) algorithm for principled exploration-exploitation trade-off.

  • StrategyThompsonSampling: Probabilistic approach using Beta-Bernoulli Thompson Sampling.

  • StrategyLinUCB: Contextual bandit (disjoint linear UCB) that uses budget progress and success-rate features to adapt heuristic selection over time.

  • StrategyPhased: Meta-strategy that splits the evaluation budget into phases, each with its own sub-strategy and heuristic portfolio (e.g., LHS exploration → GP-guided exploitation).

Result Analysis#

Analyzers process results and maintain derived information:

Analyzer

Maintains

Publishes

Best

Best points, Pareto front

new_best, new_min, new_cv, new_pareto

Splitter

Hierarchical box decomposition

new_split, identifies best leaf box

Convergence

Recent objective statistics (std / improvement)

converged

Sensitivity

Rank-correlation-based per-dimension importance scores

new_sensitivity

Restart

Stagnation detection and diverse restart centers

restart (enables IPOP-CMA-ES when paired with CMAES)

Benchmark Problems#

The library includes 22 benchmark problems for testing and validation:

  • Classic: Rosenbrock, Rastrigin, Himmelblau, Beale, Branin

  • Constrained: RosenbrockConstraint, RosenbrockAbsConstraint

  • Stochastic: RosenbrockStochastic

  • High-dimensional: Problems scalable to arbitrary dimensions

When to Use Panobbgo#

Panobbgo is ideal when you have:

✓ An expensive-to-evaluate objective function ✓ No access to gradients or function derivatives ✓ Potential noise or stochasticity in evaluations ✓ Box constraints on variables ✓ Optional constraint violations to minimize ✓ Access to parallel computing resources ✓ A limited evaluation budget

Common Applications#

  • Hyperparameter optimization: Tuning machine learning models

  • Simulation calibration: Matching simulation outputs to real data

  • Engineering design: Optimizing complex systems (aerodynamics, structures)

  • Scientific discovery: Parameter estimation in physical models

  • Industrial processes: Optimizing manufacturing or chemical processes

When NOT to Use Panobbgo#

Consider other methods if you have:

✗ Access to gradients (use gradient-based optimization) ✗ Cheap function evaluations (simple methods may suffice) ✗ Convex problems with known structure (use convex optimization) ✗ Very high dimensions (>50) without structure (consider dimension reduction first) ✗ No parallelism available and unlimited budget (simpler methods may be adequate)

Getting Started#

See Usage Guide for installation instructions and basic examples.

For a deeper understanding of the mathematical foundations, see Mathematical Foundation.

To understand the system architecture, see Architecture Overview.