Panobbgo User Guide#
Welcome to the comprehensive guide for Panobbgo (Parallel Noisy Black-Box Global Optimization).
This guide provides everything you need to understand, use, and extend Panobbgo for your black-box optimization problems.
Overview#
Panobbgo is a flexible, modular Python framework for optimizing expensive black-box functions where:
You can only evaluate the function, not analyze its internal structure
Evaluations may be noisy or stochastic
You have a limited evaluation budget
You can leverage parallel computing resources
You may have box constraints and constraint violations
The framework uses an event-driven architecture with multiple point generation heuristics that are coordinated by an adaptive strategy implementing a multi-armed bandit approach.
Guide Contents#
Key Concepts#
Before diving in, here are the core concepts you’ll encounter throughout Panobbgo:
- Problem
The black-box function you want to minimize, defined by its dimensionality and bounding box
- Point
A candidate solution (location in search space) generated by a heuristic
- Result
The outcome of evaluating a Point, including objective value and constraint violations
- Heuristic
A point generation strategy (e.g., random sampling, local search, model-based)
- Analyzer
A module that processes results and maintains derived information (e.g., best points, spatial decomposition)
- Strategy
The orchestrator that coordinates heuristics, manages evaluation, and tracks the optimization budget
- EventBus
The communication backbone enabling decoupled interaction between modules
- Multi-Armed Bandit
The adaptive selection mechanism that learns which heuristics work well for your problem
Typical Workflow#
A typical Panobbgo workflow looks like this:
Define your problem by subclassing
Problemclass MyProblem(Problem): def eval(self, x): return my_expensive_function(x)
Choose a strategy (typically
StrategyRewarding,StrategyUCB, orStrategyThompsonSampling)strategy = StrategyRewarding(problem, max_evaluations=1000)Add heuristics to create a diverse portfolio
strategy.add(Center) strategy.add(LatinHypercube, div=5) strategy.add(Random) strategy.add(NelderMead)
Run optimization (evaluations run in local threads by default; Dask is optional)
strategy.start()Analyze results
print(f"Best found: {strategy.best}") df = strategy.results.results
Design Philosophy#
Panobbgo’s design is guided by several principles:
- Modularity
Components are independent and interchangeable. Add, remove, or replace heuristics without affecting others.
- Extensibility
Easy to add custom heuristics, analyzers, or strategies by subclassing base classes.
- Composability
Mix and match components to create custom optimization workflows.
- Event-Driven
Loose coupling through the EventBus—modules communicate without direct dependencies.
- Parallel-First
Evaluations are dispatched in parallel from the ground up — local threads or processes by default, a Dask cluster optionally.
- Research-Oriented
Designed for experimentation and prototyping new optimization ideas.
When to Use Panobbgo#
Panobbgo excels when you have:
✓ Expensive function evaluations (seconds to hours per evaluation)
✓ No access to gradients or derivatives
✓ Noisy or stochastic evaluations
✓ Box-constrained search space
✓ Optional constraint violations to minimize
✓ Parallel computing resources available
✓ A research or experimental mindset (willing to tune and customize)
Common application domains include:
Hyperparameter optimization for machine learning
Simulation calibration and parameter estimation
Engineering design optimization (aerodynamics, structures, etc.)
Scientific model fitting
Industrial process optimization
When NOT to Use Panobbgo#
Consider alternatives if you have:
✗ Access to gradients (use gradient-based methods instead)
✗ Cheap function evaluations (simple methods may suffice)
✗ Convex problems with known structure (use convex optimization)
✗ Very high dimensions (>50) without special structure
✗ Need for out-of-the-box production-ready solver (Panobbgo is research-oriented)
System Requirements#
Python ≥ 3.14
NumPy, SciPy, pandas, matplotlib, statsmodels, scikit-learn
Dask (optional
daskextra) for distributed evaluationTested on Linux and macOS (Windows should work but less tested)
Community and Support#
Source Code: https://github.com/haraldschilly/panobbgo
Issue Tracker: https://github.com/haraldschilly/panobbgo/issues
API Documentation: https://haraldschilly.github.io/panobbgo/
Agent / contributor notes:
AGENTS.mdandTODO.mdin the repository
Contributing#
Panobbgo is open-source (Apache 2.0 license) and welcomes contributions:
Bug reports and feature requests
New heuristics or analyzers
Documentation improvements
Benchmarking studies
Research collaborations
See the repository for contribution guidelines.
What’s Next?#
If you’re new: Start with Introduction to Panobbgo to understand black-box optimization and Panobbgo’s approach.
If you want to use it: Jump to Usage Guide for installation and examples.
If you want to extend it: Go to Extending Panobbgo for customization patterns.
If you’re researching: Explore Research Context and Future Directions for the academic context and future directions.