Mathematical Foundation#
This section provides the mathematical foundation underlying Panobbgo’s approach to black-box global optimization.
Problem Formulation#
Objective Function#
The basic optimization problem is:
where:
\(B = \{x \in \mathbb{R}^n : l_i \leq x_i \leq u_i, \; i=1,\ldots,n\}\) is the search box
\(f: B \rightarrow \mathbb{R}\) is a potentially noisy, expensive-to-evaluate function
Constraint Handling#
If constraint functions \(g_i(x) \leq 0\) for \(i = 1, \ldots, m\) exist, we define the constraint violation vector:
The total constraint violation is the L2 norm:
Improvement Calculation#
When comparing two results (e.g., the current best vs. a new result) to calculate rewards for heuristics, Panobbgo uses a dedicated ConstraintHandler.
Default Constraint Handler#
The DefaultConstraintHandler prioritizes feasibility using a lexicographic approach:
Both Feasible: Standard improvement in objective function.
\[I = \max(0, f(x_{old}) - f(x_{new}))\]Infeasible to Feasible: Significant improvement, rewarding the transition to feasibility.
\[I = C + \rho \cdot CV(x_{old})\]where \(C\) is a base constant (e.g., 10.0) and \(\rho\) is a penalty factor (e.g., 100.0).
Both Infeasible: Improvement based on reduction of constraint violation.
\[I = \rho \cdot \max(0, CV(x_{old}) - CV(x_{new}))\]Feasible to Infeasible: No improvement (\(I=0\)).
Penalty Constraint Handlers#
Alternatively, Panobbgo supports penalty-based handlers which combine the objective and constraint violation into a single scalar metric \(P(x)\).
PenaltyConstraintHandler: Uses a static penalty function:
where \(\gamma\) is an exponent (typically 1 or 2). Improvement is defined as reduction in \(P(x)\).
DynamicPenaltyConstraintHandler: Uses a penalty factor that increases over time to gradually enforce constraints:
where \(\rho(t)\) grows with the number of evaluations.
Heuristic-Specific Approaches#
Some heuristics implement specialized constraint handling logic beyond the general handlers.
Expected Improvement with Constraints (EIC):
The GaussianProcessHeuristic supports EIC. It models the objective function \(f(x)\) and constraint violation \(cv(x)\) separately using Gaussian Processes.
where \(EI_f(x)\) is the standard Expected Improvement of the objective, and \(P(cv(x) \le 0)\) is the probability that the point is feasible, derived from the constraint GP model. This effectively penalizes infeasible regions probabilistically rather than using a hard penalty factor.
Lexicographic Ordering#
For maintaining the global “best” point, point \(x\) is considered better than \(y\) if:
\(CV(x) < CV(y)\) (less constraint violation), OR
\(CV(x) = CV(y) = 0\) AND \(f(x) < f(y)\) (better objective value)
This ensures that:
Feasible points (\(CV(x) = 0\)) are always preferred over infeasible ones
Among feasible points, we minimize the objective function
Among infeasible points, we minimize constraint violations
The Exploration-Exploitation Tradeoff#
Black-box optimization requires balancing two competing objectives:
Exploration: Sample broadly to discover the global structure and avoid missing the global optimum
Exploitation: Sample intensively in promising regions to refine the current best solution
Traditional Approaches#
Method |
Exploration Strategy |
Exploitation Strategy |
|---|---|---|
Pure Random Search |
✓ Complete coverage |
✗ No refinement |
Local Optimization |
✗ Gets stuck in local minima |
✓ Fast convergence locally |
Simulated Annealing |
Initially high, decreases |
Increases over time |
Bayesian Optimization |
Via acquisition function |
Via acquisition function |
Panobbgo’s Approach#
Panobbgo addresses the tradeoff through:
Diverse heuristics: Each with different exploration/exploitation profiles
Adaptive selection: Learn which heuristics work for this problem (multi-armed bandit)
Hierarchical decomposition: Partition space based on results (Splitter analyzer)
Multi-Armed Bandit Strategy#
The Core Idea#
Selecting which heuristic to use next is modeled as a multi-armed bandit problem:
Each heuristic \(h \in H\) is an “arm” of a slot machine
“Pulling arm \(h\)” = requesting a point from heuristic \(h\)
“Reward” \(R\) = improvement in objective value
Goal: Maximize cumulative reward (find best points quickly)
The challenge is the exploration-exploitation dilemma:
Should we use heuristics that have worked well (exploitation)?
Or try other heuristics that might work better (exploration)?
Implementation in StrategyRewarding#
Each heuristic \(h\) maintains a performance score \(p_h(t)\) updated as:
where:
\(R(x) = 1 - e^{-(f_{best} - f(x))}\) is the reward (saturates to 1)
\(d \in (0, 1)\) is a discount factor (default: 0.95)
Selection Probability#
Heuristic \(h\) is selected with probability:
where \(s > 0\) is an additive smoothing parameter (default: 0.1).
Properties:
Better-performing heuristics get selected more often
Discount factor \(d\) causes old successes to fade, preventing lock-in
Smoothing \(s\) ensures all heuristics tried occasionally (exploration)
As \(s \to 0\): more exploitation; as \(s \to \infty\): uniform random
Why This Works#
Adaptivity: Performance tracked dynamically, strategy adapts to problem
Diversification: Multiple heuristics with different search characteristics
Robustness: No single heuristic needs to solve everything
Learning: Better heuristics discovered automatically
Pareto Optimality for Constrained Problems#
Pareto Front Definition#
For constrained problems, we track the Pareto front in \((f, CV)\) space.
A point \((f, cv)\) is Pareto optimal if there exists no other point \((f', cv')\) such that:
In other words: no other point is better in both objectives simultaneously.
Pareto Update Algorithm#
When a new result \((f_{new}, cv_{new})\) arrives:
Check if dominated by existing Pareto points:
\[\text{If } \exists (f_p, cv_p) \in \text{Front}: f_p \leq f_{new} \land cv_p \leq cv_{new}\]Then \((f_{new}, cv_{new})\) is not Pareto optimal → reject
Otherwise, add \((f_{new}, cv_{new})\) to Front
Remove existing points dominated by \((f_{new}, cv_{new})\):
\[\text{Remove } (f_p, cv_p) \text{ if } f_{new} \leq f_p \land cv_{new} \leq cv_p\]
Practical Implications#
The Pareto front reveals:
Trade-off curve: How much objective improvement costs in constraint violations
Feasibility boundary: Where constraints become satisfiable
Solution diversity: Multiple viable solutions with different characteristics
Hierarchical Spatial Decomposition#
Motivation#
As optimization progresses, we learn which regions of the search space are promising.
The Splitter maintains a hierarchical decomposition
to focus search appropriately.
Box Tree Algorithm#
Initialization: Root node = entire bounding box \(B\)
Split Criterion: When a box \(B_i\) contains sufficient points:
\[n(B_i) > \alpha \cdot \dim(B)\]where \(\alpha\) is a split factor (default: 5) and \(n(B_i)\) is the number of evaluated points in \(B_i\)
Split Operation:
Find dimension \(d^*\) with largest range: \(d^* = \arg\max_d (u_d - l_d)\)
Compute midpoint: \(m = (l_{d^*} + u_{d^*}) / 2\)
Create two child boxes splitting at \(m\) along dimension \(d^*\)
Best Leaf Identification:
The “best leaf” is the leaf box containing the current best point (by lexicographic ordering)
Usage by Heuristics#
Heuristics can adapt their sampling based on the decomposition:
Random: Samples uniformly from the best leaf box
Latin Hypercube: Initial space-filling over entire \(B\)
Nearby: Local search around best point (independent of boxes)
This provides a dynamic balance:
Early optimization: Few splits → broad exploration
Late optimization: Many splits → focused exploitation in promising regions
Convergence Properties#
Theoretical Guarantees#
Under mild assumptions, Panobbgo converges to the global optimum almost surely:
Assumptions:
\(f\) is locally Lipschitz continuous almost everywhere
Evaluation budget \(N \to \infty\)
At least one heuristic performs uniform sampling (e.g., Random)
Why Convergence Holds:
Dense Coverage: Latin Hypercube + Random ensure dense initial sampling
Persistent Exploration: Random heuristic never stops, smoothing ensures it’s selected
Exploitation: Local heuristics (NelderMead, Nearby) refine promising regions
Adaptivity: Bandit focuses on heuristics that work for this problem
Practical Convergence Rate#
In practice, convergence depends on:
Problem difficulty: Multimodality, noise level, dimension
Budget allocation: How many evaluations available
Heuristic portfolio: Quality and diversity of heuristics
Parallelism: Number of simultaneous evaluations
Complexity Analysis#
Per iteration:
Sorting results: \(O(N \log N)\) where \(N\) = evaluations so far
Pareto updates: \(O(N \cdot |\text{Front}|)\) worst case, typically \(O(\log N)\)
Event dispatching: \(O(|H| + |A|)\) where \(|H|\) = heuristics, \(|A|\) = analyzers
Total:
Function evaluations: \(O(N_{max})\) (the actual bottleneck)
Overhead: \(O(N_{max}^2 \log N_{max})\) worst case, typically \(O(N_{max} \log N_{max})\)
Parallelism:
Up to \(P\) evaluations simultaneously (Dask cluster size)
Wall-clock time: \(O(N_{max} / P)\) assuming load balance
References#
Auer, P., Cesa-Bianchi, N., & Fischer, P. (2002). Finite-time analysis of the multiarmed bandit problem. Machine Learning, 47(2), 235-256.
Huyer, W., & Neumaier, A. (2008). SNOBFIT–stable noisy optimization by branch and fit. ACM Trans. Math. Softw., 35(2), 1-25.
Jones, D. R., Perttunen, C. D., & Stuckman, B. E. (1993). Lipschitzian optimization without the Lipschitz constant. J. Opt. Theory Appl., 79(1), 157-181.
Mockus, J. (1989). Bayesian Approach to Global Optimization. Springer.